<?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 VBScript placing string values in incorrect cells in Excel workbook in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/VBScript-placing-string-values-in-incorrect-cells-in-Excel/m-p/766879#M272426</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I require help with a macro that I've setup via QlikView's VBScript functionality. I got the original code from &lt;A href="https://community.qlik.com/qlik-users/41639"&gt;Stefan Walther&lt;/A&gt;'s excellent blog &lt;A href="http://www.qlikblog.at/971/qliktip-32-exporting-multiple-objects-single-excel-document/comment-page-1/#comments" title="http://www.qlikblog.at/971/qliktip-32-exporting-multiple-objects-single-excel-document/comment-page-1/#comments"&gt;QlikTip #32: Exporting multiple QV objects to a single Excel document. &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem Statement&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After extending the code to loop through Stefan's code depending on the type of report that needs to be generated and then loops through a list of names and generates the report based on the data tied to that person.The first person's report works perfectly, but I ran into problems with the second and subsequent reports having issues where string values being pasted to multiple rows (even though only one specific cell is specified) but only for certain strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I've Tried&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1) I've tried removing my use of Range().Value to Range().Value2 and later Cell().Value.&lt;/P&gt;&lt;P&gt;2) Stefan already has the following in to handle timing issues with screen refresh rates when pasting in objects and dealing with warning messages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objExcelApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcelApp.Visible = False&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'suppresses the display of the Excel workbook&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcelApp.DisplayAlerts = False 'suppresses warning popups&lt;/P&gt;&lt;P&gt;and I brought in &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcelApp.ScreenUpdating = False 'just to see if it had a affect...but I would have thought Visible = False already handles this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) I have also brought in &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.GetApplication.SLEEP 3000 at different point in the script to try to avoid timing issues with the amount of content copied over thinking that the processor might be to quick (or slow) or something like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) And then lastly I've gone the route of adding &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcelApp.CutCopyMode = False in the hopes that it is just a full clipboard issue causing delays in pasting. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Conclusion&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I've attached the script that I'm using (minus a company details and the code for &lt;SPAN style="color: #0000ff;"&gt;CommProcessNum = 3&lt;/SPAN&gt; which does not require looping through the names list in &lt;SPAN style="color: #0000ff;"&gt;j&lt;/SPAN&gt;). My specific issue is with&lt;SPAN style="color: #0000ff;"&gt; CommProcessNum = 1 or 2&lt;/SPAN&gt;.Please excuse the code I don't really code in VBScript often (if you have any suggestions, I would more than welcome it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Nov 2014 08:00:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-18T08:00:00Z</dc:date>
    <item>
      <title>VBScript placing string values in incorrect cells in Excel workbook</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-placing-string-values-in-incorrect-cells-in-Excel/m-p/766879#M272426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I require help with a macro that I've setup via QlikView's VBScript functionality. I got the original code from &lt;A href="https://community.qlik.com/qlik-users/41639"&gt;Stefan Walther&lt;/A&gt;'s excellent blog &lt;A href="http://www.qlikblog.at/971/qliktip-32-exporting-multiple-objects-single-excel-document/comment-page-1/#comments" title="http://www.qlikblog.at/971/qliktip-32-exporting-multiple-objects-single-excel-document/comment-page-1/#comments"&gt;QlikTip #32: Exporting multiple QV objects to a single Excel document. &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem Statement&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After extending the code to loop through Stefan's code depending on the type of report that needs to be generated and then loops through a list of names and generates the report based on the data tied to that person.The first person's report works perfectly, but I ran into problems with the second and subsequent reports having issues where string values being pasted to multiple rows (even though only one specific cell is specified) but only for certain strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I've Tried&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1) I've tried removing my use of Range().Value to Range().Value2 and later Cell().Value.&lt;/P&gt;&lt;P&gt;2) Stefan already has the following in to handle timing issues with screen refresh rates when pasting in objects and dealing with warning messages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objExcelApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcelApp.Visible = False&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'suppresses the display of the Excel workbook&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcelApp.DisplayAlerts = False 'suppresses warning popups&lt;/P&gt;&lt;P&gt;and I brought in &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcelApp.ScreenUpdating = False 'just to see if it had a affect...but I would have thought Visible = False already handles this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) I have also brought in &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.GetApplication.SLEEP 3000 at different point in the script to try to avoid timing issues with the amount of content copied over thinking that the processor might be to quick (or slow) or something like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) And then lastly I've gone the route of adding &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcelApp.CutCopyMode = False in the hopes that it is just a full clipboard issue causing delays in pasting. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Conclusion&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I've attached the script that I'm using (minus a company details and the code for &lt;SPAN style="color: #0000ff;"&gt;CommProcessNum = 3&lt;/SPAN&gt; which does not require looping through the names list in &lt;SPAN style="color: #0000ff;"&gt;j&lt;/SPAN&gt;). My specific issue is with&lt;SPAN style="color: #0000ff;"&gt; CommProcessNum = 1 or 2&lt;/SPAN&gt;.Please excuse the code I don't really code in VBScript often (if you have any suggestions, I would more than welcome it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 08:00:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-placing-string-values-in-incorrect-cells-in-Excel/m-p/766879#M272426</guid>
      <dc:creator />
      <dc:date>2014-11-18T08:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript placing string values in incorrect cells in Excel workbook</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-placing-string-values-in-incorrect-cells-in-Excel/m-p/766880#M272427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anything that I can do to help you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The particular point where things go wonky withedata applied to rows 38:41 where apply a bold and a border:&lt;/P&gt;&lt;P&gt;summarySH.Cells(41,2).Value = "COMMISSION"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and rows 72:82 with following section where I add hyperlinks with email adress details:&lt;/P&gt;&lt;P&gt;summarySH.Cells(75,2).Value = "Queries"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set rng = summarySH.Cells(77,2) 'commission payment email&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; With summarySH&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Hyperlinks.Add .Range("B77:H77"), "mailto:&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:x@company.co.za"&gt;x@company.co.za&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Hyperlinks(2).EmailSubject = "Monthly Solutions Commission Payment for "&amp;amp; sAdviserName &amp;amp;" on "&amp;amp; sMonthYear.GetContent.String&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Hyperlinks(2).TextToDisplay= "For queries regarding the payment of this commission please email X or phone (000) 000 0000"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End With&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; With rng.Font&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .ColorIndex = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Underline = xlUnderlineStyleNone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End With&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; With rng.Characters(61,5).Font&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Underline = xlUnderlineStyleSingle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Color = RGB(59,181,245)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End With&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set rng = summarySH.Range("B79")&amp;nbsp;&amp;nbsp;&amp;nbsp; 'commission calc email&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; With summarySH&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Hyperlinks.Add .Range("B79:H79"), "mailto:&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:y@company.co.za"&gt;y@company.co.za&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Hyperlinks(3).EmailSubject = "Monthly Solutions Commission Calculation for "&amp;amp; sAdviserName &amp;amp;" on "&amp;amp; sMonthYear.GetContent.String&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Hyperlinks(3).TextToDisplay= "For queries regarding the calculation of this commission please email Y or phone (000) 000 0000"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End With&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; With rng.Font&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .ColorIndex = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Underline = xlUnderlineStyleNone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End With&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; With rng.Characters(65,5).Font&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Underline = xlUnderlineStyleSingle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Color = RGB(59,181,245)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End With&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 12:00:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-placing-string-values-in-incorrect-cells-in-Excel/m-p/766880#M272427</guid>
      <dc:creator />
      <dc:date>2014-11-24T12:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript placing string values in incorrect cells in Excel workbook</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-placing-string-values-in-incorrect-cells-in-Excel/m-p/766881#M272428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably, you can help creating a sample qvw and being more specific to the issue (as you have already explained in sufficient detail). Sometimes, to-the-point and precise issue description could help generating more interests in lazy people like me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 12:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-placing-string-values-in-incorrect-cells-in-Excel/m-p/766881#M272428</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-11-24T12:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript placing string values in incorrect cells in Excel workbook</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-placing-string-values-in-incorrect-cells-in-Excel/m-p/766882#M272429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you runs into problems with the merging of cells then afterwards you couldn't set any values to them without a message and a user-depending decision. Generally you should at first export/writing all objects/text and make the formatting afterwards. So you need independent routines for this or any kind of counter in your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further, to find errors in such code could be very difficult so I suggest to include some logging-logic maybe per msgbox or in an extra sheet or textfile to count your loops and return the variable-values and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 12:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-placing-string-values-in-incorrect-cells-in-Excel/m-p/766882#M272429</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-11-24T12:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript placing string values in incorrect cells in Excel workbook</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-placing-string-values-in-incorrect-cells-in-Excel/m-p/766883#M272430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tresesco, thank you for your response. I think your points on brevity and a working QVW example are valid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 17:37:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-placing-string-values-in-incorrect-cells-in-Excel/m-p/766883#M272430</guid>
      <dc:creator />
      <dc:date>2014-11-24T17:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript placing string values in incorrect cells in Excel workbook</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-placing-string-values-in-incorrect-cells-in-Excel/m-p/766884#M272431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Marcus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I'll try splitting the two processed as you suggest, it sounds like a solid lead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I might need some guidance on doing as you instructed in the last part. It sounds like you are referring to something like Trace in QlikView scripting. I've used message boxes to act as break-points in the VBScript, but besides slowing down the process it did not change the outcome (text being pasted to the incorrect script and formatting being applied to cells other than the ones stated in the script). Do you perhaps have some practical tips you to do this sort of debugging? Perhaps I'm just not doing it right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try splitting the code between exporting and formatting processes as you have suggested.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 17:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-placing-string-values-in-incorrect-cells-in-Excel/m-p/766884#M272431</guid>
      <dc:creator />
      <dc:date>2014-11-24T17:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript placing string values in incorrect cells in Excel workbook</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-placing-string-values-in-incorrect-cells-in-Excel/m-p/766885#M272432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here the main-logic. Instead of using two separate loops for each sheet you could also use a counter which counts the objects and is it the last one start the formatting. Actually I do so but I'm not sure if I used it again by the next release of my exporting-routines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ... qv applications&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ... xls application&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ... xls-sheet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ... qv objects exporting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ... qv objects formatting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally it needs a lot of effort to build and maintain such unique single-solutions and if you have the possibilities to use the publisher or third-party tools like NPrinting you should use them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To trace your routines you could use in simply cases the msgbox but if it's bigger or more complicated it's better to use a text-file (another use-case here - &lt;A href="https://community.qlik.com/message/618968"&gt;Re: export all objects to ppt&lt;/A&gt; - but an example with writing in txt-files) or if you operate with xls I would use a separate sheet to write all my loop-countings and variable-values and so on (you need only set the xls-application visibilty to true and you could use them directly).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 08:49:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-placing-string-values-in-incorrect-cells-in-Excel/m-p/766885#M272432</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-11-25T08:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript placing string values in incorrect cells in Excel workbook</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-placing-string-values-in-incorrect-cells-in-Excel/m-p/766886#M272433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again for you help and advice!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What ended up working for me was to change how I was looping through the code. Instead of (in pseudo code):&lt;/P&gt;&lt;P&gt;creating the workbook&lt;/P&gt;&lt;P&gt;For i=1 To Advisor.Count&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; export objects&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; add text to cells&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format cells, rows &amp;amp; columns&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;saving and closing workbook&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I brought the creating and closing of the Excel application and workbook inside the loop&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;For i=1 To Advisor.Count&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create the workbook&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; export objects&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; add text to cells&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format cells, rows &amp;amp; columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; save &amp;amp; close workbook&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing it this way removed my 'smudging issue'. I initially avoided going this route because I thought it would be faster to keep the Excel Application open and rather add and close workbooks as I move through the loop, but closing and opening the Excel Application does not take noticeably longer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Charles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 18:52:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-placing-string-values-in-incorrect-cells-in-Excel/m-p/766886#M272433</guid>
      <dc:creator />
      <dc:date>2014-12-02T18:52:28Z</dc:date>
    </item>
  </channel>
</rss>

