<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: VBScript. Rename expression Labels doesn't work. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/VBScript-Rename-expression-Labels-doesn-t-work/m-p/1782935#M1209716</link>
    <description>&lt;P&gt;what happens if you call this function instead of sleep?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;function dteWait
dteWait = DateAdd("s", 10, Now())
Do Until (Now() &amp;gt; dteWait)
Loop
end function&lt;/LI-CODE&gt;&lt;P&gt;or maybe this statement:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2021 10:25:00 GMT</pubDate>
    <dc:creator>Frank_Hartmann</dc:creator>
    <dc:date>2021-02-16T10:25:00Z</dc:date>
    <item>
      <title>VBScript. Rename expression Labels doesn't work.</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-Rename-expression-Labels-doesn-t-work/m-p/1782934#M1209715</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;The macro below renames expression Labels. The cycle matches the labels to the list.&lt;BR /&gt;Without this text: MsgBox( "Text" )&lt;BR /&gt;Renames only first Label from the cycle.&lt;BR /&gt;Together with this text it works out correctly with all Labels.&lt;BR /&gt;Should work with all Labels without displaying a message and the need to click "OK".&lt;BR /&gt;Can you please tell me what's my mistake? Or than replace MsgBox?&lt;/P&gt;&lt;P&gt;'--&amp;gt;&lt;BR /&gt;Sub Test1&lt;BR /&gt;set App = ActiveDocument.GetApplication&lt;BR /&gt;SET QVDoc = App.OpenDoc ("F:\Разработка\Чуваева\20395_Глоссарий\Учетная цена по компании (УЦК январь 2018). Движения.qvw","","")&lt;BR /&gt;ActiveDocument.Activate 'QVDoc.Activate '&lt;/P&gt;&lt;P&gt;'7. '======== Renames Labels ===================&lt;BR /&gt;SET Glos = QVDoc.GetSheetObject("Glos")&lt;BR /&gt;Gw = Glos.GetColumnCount&lt;BR /&gt;Gh = Glos.GetRowCount&lt;BR /&gt;set CellG = Glos.GetCells2(0,0,Gw,Gh)&lt;BR /&gt;&lt;BR /&gt;QVDoc.Sheets(0).Activate&lt;BR /&gt;&lt;BR /&gt;FOR GLi = 1 to Gh-1 'Перебор по строкам Глоссария от 0&lt;BR /&gt;&lt;BR /&gt;For ColIter = 0 to Eval(CellG(GLi)(0).Text).GetProperties.Expressions.Count-1&lt;BR /&gt;&lt;BR /&gt;MsgBox( "Text" )&lt;BR /&gt;'QVDoc.GetApplication.Sleep 1000 ' Doesn't work.&lt;BR /&gt;'ActiveDocument.GetApplication.Sleep 1000 ' Doesn't work.&lt;BR /&gt;&lt;BR /&gt;IF (CellG(GLi)(4).Text + "|" + Eval(CellG(GLi)(0).Text).GetProperties.Expressions.Item(ColIter).Item(0).Data.ExpressionVisual.Label.v) = CellG(GLi)(2).Text THEN&lt;BR /&gt;set p = Eval(CellG(GLi)(0).Text).GetProperties&lt;BR /&gt;p.Expressions.Item(ColIter).Item(0).Data.ExpressionVisual.Label.v = CellG(GLi)(3).Text&lt;BR /&gt;Eval(CellG(GLi)(0).Text).SetProperties p&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;Next&lt;BR /&gt;NEXT&lt;BR /&gt;&lt;BR /&gt;msgbox("End.")&lt;BR /&gt;End Sub&lt;BR /&gt;'--&amp;lt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 09:46:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-Rename-expression-Labels-doesn-t-work/m-p/1782934#M1209715</guid>
      <dc:creator>Danpil</dc:creator>
      <dc:date>2021-02-16T09:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript. Rename expression Labels doesn't work.</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-Rename-expression-Labels-doesn-t-work/m-p/1782935#M1209716</link>
      <description>&lt;P&gt;what happens if you call this function instead of sleep?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;function dteWait
dteWait = DateAdd("s", 10, Now())
Do Until (Now() &amp;gt; dteWait)
Loop
end function&lt;/LI-CODE&gt;&lt;P&gt;or maybe this statement:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 10:25:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-Rename-expression-Labels-doesn-t-work/m-p/1782935#M1209716</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2021-02-16T10:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript. Rename expression Labels doesn't work.</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-Rename-expression-Labels-doesn-t-work/m-p/1782984#M1209717</link>
      <description>&lt;P&gt;Thank you very much!&lt;BR /&gt;ActiveDocument.GetApplication.WaitForIdle&amp;nbsp; &amp;nbsp; &amp;nbsp; worked!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 12:07:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-Rename-expression-Labels-doesn-t-work/m-p/1782984#M1209717</guid>
      <dc:creator>Danpil</dc:creator>
      <dc:date>2021-02-16T12:07:38Z</dc:date>
    </item>
  </channel>
</rss>

