<?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: Macro to save the QVW file with User Name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-save-the-QVW-file-with-User-Name/m-p/1335346#M845065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you so much for your response. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nanri Tamil. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Apr 2017 13:47:23 GMT</pubDate>
    <dc:creator>karthickv</dc:creator>
    <dc:date>2017-04-04T13:47:23Z</dc:date>
    <item>
      <title>Macro to save the QVW file with User Name</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-save-the-QVW-file-with-User-Name/m-p/1335342#M845061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please share a macro which can help me to perform a reload &amp;amp; save the file with User Name ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say I have a Sales.qvw file, upon clicking the button, macro should run and the file should be reloaded &amp;amp; saved as Sales K1234.qvw. Where K1234 is the OSUser Name or &lt;SPAN style="font-size: 13.3333px;"&gt;QVUser Name&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Karthick V.&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/Macro-to-save-the-QVW-file-with-User-Name/m-p/1335342#M845061</guid>
      <dc:creator>karthickv</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to save the QVW file with User Name</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-save-the-QVW-file-with-User-Name/m-p/1335343#M845062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create the variable "vUser" with Definition &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;OSUser&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),'\',2) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Then use this macro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub Reload_Save&lt;BR /&gt; set docprop = ActiveDocument.GetProperties&lt;BR /&gt; Filename = docprop.FileName&lt;BR /&gt; &lt;BR /&gt; set v = ActiveDocument.Variables("vUser")&lt;BR /&gt; Username = v.GetContent.String&lt;BR /&gt; &lt;BR /&gt; ActiveDocument.Reload&lt;BR /&gt; ActiveDocument.SaveAs left(FileName, len(FileName)-4) &amp;amp; " " &amp;amp; Username &amp;amp; ".qvw"&lt;BR /&gt; end Sub&lt;BR /&gt; &lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 11:16:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-save-the-QVW-file-with-User-Name/m-p/1335343#M845062</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2017-04-04T11:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to save the QVW file with User Name</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-save-the-QVW-file-with-User-Name/m-p/1335344#M845063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just thought of sharing this line without creating a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub Reload_Save&lt;/P&gt;&lt;P&gt;set docprop = ActiveDocument.GetProperties&lt;/P&gt;&lt;P&gt;Filename = docprop.FileName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Username = ActiveDocument.Evaluate("subfield(OSUser(),'\',2)")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;ActiveDocument.Reload&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.SaveAs left(FileName, len(FileName)-4) &amp;amp; " " &amp;amp; Username &amp;amp; ".qvw"&lt;/P&gt;&lt;P&gt;end Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 12:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-save-the-QVW-file-with-User-Name/m-p/1335344#M845063</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2017-04-04T12:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to save the QVW file with User Name</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-save-the-QVW-file-with-User-Name/m-p/1335345#M845064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for your Response Tim. It worked. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 13:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-save-the-QVW-file-with-User-Name/m-p/1335345#M845064</guid>
      <dc:creator>karthickv</dc:creator>
      <dc:date>2017-04-04T13:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to save the QVW file with User Name</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-save-the-QVW-file-with-User-Name/m-p/1335346#M845065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you so much for your response. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nanri Tamil. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 13:47:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-save-the-QVW-file-with-User-Name/m-p/1335346#M845065</guid>
      <dc:creator>karthickv</dc:creator>
      <dc:date>2017-04-04T13:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to save the QVW file with User Name</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-save-the-QVW-file-with-User-Name/m-p/1335347#M845066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem bro. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; Have a good day!! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2017 07:55:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-save-the-QVW-file-with-User-Name/m-p/1335347#M845066</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2017-04-05T07:55:39Z</dc:date>
    </item>
  </channel>
</rss>

