<?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 Object Required: obj in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Object-Required-obj/m-p/374837#M705420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Everyone, &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I get the following error when trying to Export a Straight Table to a CSV (Object Required: obj) from the last line of my script. Anyone know what causes it?&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt;"&gt;Sub ExportMyTable&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; 'Comment this part out if you want to Export your Selection made...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; Activedocument.ClearAll&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; vFile = "c:\WhereEver\YourDesiredFileName.csv"&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; vDirectory&amp;nbsp; = "c:\WhereEver\"&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; ' Create the File System Object&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; Set objFSO = CreateObject("Scripting.FileSystemObject")&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; 'Either use or create a directory pending on whether it exists&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; If objFSO.FolderExists(vDirectory) Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; Set objFolder = objFSO.GetFolder(vDirectory)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; Else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; Set objFolder = objFSO.CreateFolder(vDirectory)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; End If&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; set obj = ActiveDocument.GetSheetObject("CHO1")&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; obj.ExportEx vFile, 1&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; End Sub &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Mar 2012 21:27:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-28T21:27:22Z</dc:date>
    <item>
      <title>Object Required: obj</title>
      <link>https://community.qlik.com/t5/QlikView/Object-Required-obj/m-p/374837#M705420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Everyone, &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I get the following error when trying to Export a Straight Table to a CSV (Object Required: obj) from the last line of my script. Anyone know what causes it?&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt;"&gt;Sub ExportMyTable&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; 'Comment this part out if you want to Export your Selection made...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; Activedocument.ClearAll&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; vFile = "c:\WhereEver\YourDesiredFileName.csv"&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; vDirectory&amp;nbsp; = "c:\WhereEver\"&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; ' Create the File System Object&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; Set objFSO = CreateObject("Scripting.FileSystemObject")&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; 'Either use or create a directory pending on whether it exists&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; If objFSO.FolderExists(vDirectory) Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; Set objFolder = objFSO.GetFolder(vDirectory)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; Else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; Set objFolder = objFSO.CreateFolder(vDirectory)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; End If&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; set obj = ActiveDocument.GetSheetObject("CHO1")&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; obj.ExportEx vFile, 1&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; End Sub &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2012 21:27:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Object-Required-obj/m-p/374837#M705420</guid>
      <dc:creator />
      <dc:date>2012-03-28T21:27:22Z</dc:date>
    </item>
    <item>
      <title>Object Required: obj</title>
      <link>https://community.qlik.com/t5/QlikView/Object-Required-obj/m-p/374838#M705421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The set obj = ActiveDocument.GetSheetObject("CHO1") is not assigning the object to the variable obj.&amp;nbsp; I think the problem is that you are using the letter "O" instead of the number "0" in the object ID "CH01".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2012 21:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Object-Required-obj/m-p/374838#M705421</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2012-03-28T21:48:49Z</dc:date>
    </item>
  </channel>
</rss>

