<?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 Macro error for space in File Path and File Name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-error-for-space-in-File-Path-and-File-Name/m-p/153786#M504620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this works for what are you trying to do?&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Nov 2009 03:53:14 GMT</pubDate>
    <dc:creator>hector</dc:creator>
    <dc:date>2009-11-17T03:53:14Z</dc:date>
    <item>
      <title>Macro error for space in File Path and File Name</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-error-for-space-in-File-Path-and-File-Name/m-p/153782#M504616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vbscript error Object required: '[string: Cha&lt;/P&gt;&lt;P&gt;I get the error above when trying to set the filepath to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;dim fileName&lt;BR /&gt;set fileName = ActiveDocument.Evaluate("'\\servername\folder one\folder two\folderthree\my filename.txt'")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;i even tried without the ActiveDocument and single quotes and still got the same error. Anyone encounter this issue before? thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 01:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-error-for-space-in-File-Path-and-File-Name/m-p/153782#M504616</guid>
      <dc:creator>avastani</dc:creator>
      <dc:date>2009-11-17T01:02:46Z</dc:date>
    </item>
    <item>
      <title>Macro error for space in File Path and File Name</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-error-for-space-in-File-Path-and-File-Name/m-p/153783#M504617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you tried escaping the backslash with a backslash? Someting like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;\\\\servername\\folder one\\...&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 02:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-error-for-space-in-File-Path-and-File-Name/m-p/153783#M504617</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2009-11-17T02:32:46Z</dc:date>
    </item>
    <item>
      <title>Macro error for space in File Path and File Name</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-error-for-space-in-File-Path-and-File-Name/m-p/153784#M504618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tried that, didn't work. it is just hung on&lt;/P&gt;&lt;P&gt;Object required: '[string: "\\servername\\folder o"]'&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 02:58:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-error-for-space-in-File-Path-and-File-Name/m-p/153784#M504618</guid>
      <dc:creator>avastani</dc:creator>
      <dc:date>2009-11-17T02:58:49Z</dc:date>
    </item>
    <item>
      <title>Macro error for space in File Path and File Name</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-error-for-space-in-File-Path-and-File-Name/m-p/153785#M504619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but what are you trying to do? read this value to use in the macro editor? why are you using evaluate??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 03:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-error-for-space-in-File-Path-and-File-Name/m-p/153785#M504619</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2009-11-17T03:43:13Z</dc:date>
    </item>
    <item>
      <title>Macro error for space in File Path and File Name</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-error-for-space-in-File-Path-and-File-Name/m-p/153786#M504620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this works for what are you trying to do?&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 03:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-error-for-space-in-File-Path-and-File-Name/m-p/153786#M504620</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2009-11-17T03:53:14Z</dc:date>
    </item>
    <item>
      <title>Macro error for space in File Path and File Name</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-error-for-space-in-File-Path-and-File-Name/m-p/153787#M504621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not using Evaluate. i will take a look at your example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 04:39:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-error-for-space-in-File-Path-and-File-Name/m-p/153787#M504621</guid>
      <dc:creator>avastani</dc:creator>
      <dc:date>2009-11-17T04:39:54Z</dc:date>
    </item>
    <item>
      <title>Macro error for space in File Path and File Name</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-error-for-space-in-File-Path-and-File-Name/m-p/153788#M504622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amir,&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Looking at the code you've provided, I feel it important to note that the Evaluate method of ActiveDocument is intended as a means to evaluate an arbitrary Qlikview expression (i.e. Totals = ActiveDocument.Evaluate("Sum(Totals_Field)") ). You appear to be using it as a means to load a text file into Qlikview. The string you're passing to Evaluate isn't a valid Qlikview expression, which is why you are receiving the Object required error message.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Namely, the Set keyword in VBA is used to change an object reference to point to a given object. Since Evaluate returns the result of the expression evaluated as a String -which is not considered an Object by VBA- you get the error message you described.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;I'm guessing that the following is what you're actually trying to achieve:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR style="padding-left:30px;" /&gt;Dim fileName&lt;BR style="padding-left:30px;" /&gt;fileName = "\\servername\folder one\folder two\folderthree\my filename.txt"&lt;BR style="padding-left:30px;" /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="padding-left:30px;"&gt;Since you aren't working with an object, there's no need to use the Set keyword.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Hope this helps!&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;-Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 07:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-error-for-space-in-File-Path-and-File-Name/m-p/153788#M504622</guid>
      <dc:creator />
      <dc:date>2009-11-17T07:34:13Z</dc:date>
    </item>
    <item>
      <title>Macro error for space in File Path and File Name</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-error-for-space-in-File-Path-and-File-Name/m-p/153789#M504623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;Very insightful if I may say and to continue further, that is the key to my misery with this Object required error.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 08:33:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-error-for-space-in-File-Path-and-File-Name/m-p/153789#M504623</guid>
      <dc:creator>avastani</dc:creator>
      <dc:date>2009-11-17T08:33:18Z</dc:date>
    </item>
  </channel>
</rss>

