<?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 EXPORT QVD  WITH  VALUE OF A VARIABLE in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/EXPORT-QVD-WITH-VALUE-OF-A-VARIABLE/m-p/221943#M74693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have a macro that exports a file QVD with the employee's name&lt;BR /&gt; .&lt;BR /&gt; Now I want to add the variable VR_MES the file name that returns months and years.&lt;/P&gt;&lt;P&gt;Employee 02 2011.QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sub export_Venda&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; set obj = ActiveDocument.GetSheetObject("CH14")&lt;BR /&gt; set val=ActiveDocument.Fields("Employee").GetPossibleValues&lt;BR /&gt; FUNCIONARIO = val.Item(i).Text&lt;BR /&gt; obj.ExportEx "D:\Desenv\Qvd_Planejamento_Compra\Venda_"&amp;amp;Employee&amp;amp;".qvd", 4&lt;BR /&gt; msgbox("Dados exportados com sucesso")&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2011 13:18:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-04-19T13:18:20Z</dc:date>
    <item>
      <title>EXPORT QVD  WITH  VALUE OF A VARIABLE</title>
      <link>https://community.qlik.com/t5/QlikView/EXPORT-QVD-WITH-VALUE-OF-A-VARIABLE/m-p/221943#M74693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have a macro that exports a file QVD with the employee's name&lt;BR /&gt; .&lt;BR /&gt; Now I want to add the variable VR_MES the file name that returns months and years.&lt;/P&gt;&lt;P&gt;Employee 02 2011.QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sub export_Venda&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; set obj = ActiveDocument.GetSheetObject("CH14")&lt;BR /&gt; set val=ActiveDocument.Fields("Employee").GetPossibleValues&lt;BR /&gt; FUNCIONARIO = val.Item(i).Text&lt;BR /&gt; obj.ExportEx "D:\Desenv\Qvd_Planejamento_Compra\Venda_"&amp;amp;Employee&amp;amp;".qvd", 4&lt;BR /&gt; msgbox("Dados exportados com sucesso")&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 13:18:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXPORT-QVD-WITH-VALUE-OF-A-VARIABLE/m-p/221943#M74693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-19T13:18:20Z</dc:date>
    </item>
    <item>
      <title>EXPORT QVD  WITH  VALUE OF A VARIABLE</title>
      <link>https://community.qlik.com/t5/QlikView/EXPORT-QVD-WITH-VALUE-OF-A-VARIABLE/m-p/221944#M74694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;First make sure that the variable stores the date properly, and not the numeric format of QlikView nor decimals (dates with times).&lt;/P&gt;&lt;P&gt;Then add in the macro the lines corresponding to the reading of the variable and the path modification:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sub export_Venda Set obj = ActiveDocument.GetSheetObject("CH14") Set val = ActiveDocument.Fields("Employee").GetPossibleValues Set vFecha = ActiveDocument.Variables("vDateVariable") vFecha = vFecha.GetContent.String FUNCIONARIO = val.Item(i).Text obj.ExportEx "D:\Desenv\Qvd_Planejamento_Compra\Venda_"&amp;amp;Employee&amp;amp;"_"&amp;amp;vFecha&amp;amp;".qvd", 4 MsgBox("Dados exportados com sucesso") End Sub&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 13:31:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXPORT-QVD-WITH-VALUE-OF-A-VARIABLE/m-p/221944#M74694</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-04-19T13:31:37Z</dc:date>
    </item>
  </channel>
</rss>

