<?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: If then VBScript issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-then-VBScript-issue/m-p/4766#M791050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have managed to fix the issue by myself. I keep forgetting that VBA syntax isn't the same as VBScript syntax, despite being similar languages&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jan 2018 15:40:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-22T15:40:56Z</dc:date>
    <item>
      <title>If then VBScript issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-VBScript-issue/m-p/4761#M791045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to format some tables that I paste from qlikview in the export macro. I came up with the following script:&lt;/P&gt;&lt;P&gt;if CycleFlag = 1 then&lt;/P&gt;&lt;P&gt;'Light Brown'&lt;/P&gt;&lt;P&gt; XLDoc.Sheets(1).Range("A1:C22").Interior.Color = RGB(221,217,195)&lt;/P&gt;&lt;P&gt;'Grey'&lt;/P&gt;&lt;P&gt; XLDoc.Sheets(1).Range("D1:D22").Interior.Color = RGB(166,166,166)&lt;/P&gt;&lt;P&gt; else if CycleFlag = 2 then&lt;/P&gt;&lt;P&gt;'Light Brown'&lt;/P&gt;&lt;P&gt; XLDoc.Sheets(1).Range("A1:C62").Interior.Color = RGB(221,217,195)&lt;/P&gt;&lt;P&gt;'Grey'&lt;/P&gt;&lt;P&gt; XLDoc.Sheets(1).Range("D1:D62").Interior.Color = RGB(166,166,166)&lt;/P&gt;&lt;P&gt; end if&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;but I keep getting an error at the end sub line: "Expected 'If'". What am I doing wrong? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-VBScript-issue/m-p/4761#M791045</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: If then VBScript issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-VBScript-issue/m-p/4762#M791046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't show a sub at the beginning.&lt;/P&gt;&lt;P&gt;Sub SetColors()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also don't show a definition for CycleFlag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 15:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-VBScript-issue/m-p/4762#M791046</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2018-01-22T15:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: If then VBScript issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-VBScript-issue/m-p/4763#M791047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a sub at the start of the submodule. I didn't pasted the code above the part of the script that might cause problems because that part is working fine. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 15:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-VBScript-issue/m-p/4763#M791047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-22T15:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: If then VBScript issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-VBScript-issue/m-p/4764#M791048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apparently the problem was with the "else if" statement. I've corrected it and it's working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 15:36:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-VBScript-issue/m-p/4764#M791048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-22T15:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: If then VBScript issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-VBScript-issue/m-p/4765#M791049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see a problem in the script that you posted. Please post your entire script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 15:37:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-VBScript-issue/m-p/4765#M791049</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2018-01-22T15:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: If then VBScript issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-VBScript-issue/m-p/4766#M791050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have managed to fix the issue by myself. I keep forgetting that VBA syntax isn't the same as VBScript syntax, despite being similar languages&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 15:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-VBScript-issue/m-p/4766#M791050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-22T15:40:56Z</dc:date>
    </item>
  </channel>
</rss>

