<?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 Inconsistency in export to .xlsm file using template file Works for  one user, does not for another. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Inconsistency-in-export-to-xlsm-file-using-template-file-Works/m-p/1783253#M1209740</link>
    <description>&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;I have a question. I was able to export to&lt;STRONG&gt; .xlsm&lt;/STRONG&gt; file using template file which works fine. We are exporting to a shared folder. For one user, the export works fine with column frozen at Column G with column A,B,C,D,E,F visible.&lt;/P&gt;&lt;P&gt;For another user, export does not seem to work . A,B,C,D columns are hidden.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure about the inconsistency in export behavior. The users are not computer savvy.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am a bit confused, Can some one please direct&amp;nbsp; where to look and possible hint to resolve this inconsistency in export please?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUB ExportToWorkSheetRevised&lt;/P&gt;&lt;P&gt;' on error resume next&lt;BR /&gt;&lt;BR /&gt;Dim RowCount&lt;BR /&gt;Dim lngLstCol&lt;BR /&gt;Dim lngLstRow&lt;BR /&gt;Dim xRg&lt;BR /&gt;Dim xRgUni&lt;BR /&gt;Dim xFirstAddress&lt;BR /&gt;Dim xStr&lt;BR /&gt;Dim aCell&lt;BR /&gt;Dim ColumnLabel&lt;BR /&gt;Dim objObjectFromRows&lt;BR /&gt;Dim TempCreateCsvList&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'Set objFso = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;'Set objFolder = objFso.GetFolder(excelFolder)&lt;BR /&gt;'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;vlWorkSheetTemplDir = ActiveDocument.Variables("vWorkSheetTemplDir").GetContent.String&lt;BR /&gt;vlWorkSheetTemplFileName = ActiveDocument.Variables("vWorkSheetTemplFileName").GetContent.String&lt;BR /&gt;vTemplFileName = vlWorkSheetTemplDir &amp;amp;"\" &amp;amp; vlWorkSheetTemplFileName &amp;amp; ".xlsm"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;vlWorkSheetDir = ActiveDocument.Variables("vWorkSheetDir").GetContent.String&lt;BR /&gt;vlWorkSheetFileName = ActiveDocument.Variables("vWorkSheetFileName").GetContent.String&lt;BR /&gt;vlFileDayAndTime =ActiveDocument.Variables("vFileDayAndTime").GetContent.String&lt;BR /&gt;vTgtWorkSheetFileName = vlWorkSheetDir &amp;amp;"\" &amp;amp; vlWorkSheetFileName &amp;amp;"_" &amp;amp; vlFileDayAndTime &amp;amp; ".xlsm"&lt;BR /&gt;&lt;BR /&gt;'copy chart to clipboard&lt;BR /&gt;ActiveDocument.GetSheetObject("CH689").CopyTableToClipboard True&lt;BR /&gt;SET xlApp = CreateObject("EXCEL.APPLICATION")&lt;BR /&gt;'SET xlAppConfigList = CreateObject("EXCEL.APPLICATION") 'create confiration list app object&lt;/P&gt;&lt;P&gt;Set xlWorkbook = xlApp.Workbooks.open (vTemplFileName)&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;xlApp.Run "Macro2"&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;xlWorkbook.SaveAs(vTgtWorkSheetFileName)&lt;BR /&gt;Set xlWorksheet = xlWorkbook.Worksheets(1)&lt;BR /&gt;xlWorksheet.Activate&lt;BR /&gt;xlWorksheet.Range("A1").Select&lt;BR /&gt;'Msgbox "Ready to Import"&lt;BR /&gt;xlWorkSheet.Paste xlWorksheet.Range("A1")&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;xlApp.Run "SetListofValues"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#993300"&gt;&lt;STRONG&gt;xlApp.Run "Macro1" ' Macro1&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#993300"&gt;&lt;STRONG&gt;'xlApp.Run "Macro3" ' Macro3 &lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;xlApp.Run "Macro3"&lt;BR /&gt;xlWorkBook.Save&lt;BR /&gt;xlWorkBook.Close&lt;BR /&gt;xlApp.quit&lt;BR /&gt;xlApp = Empty&lt;BR /&gt;End Sub&lt;/P&gt;</description>
    <pubDate>Wed, 17 Feb 2021 00:54:45 GMT</pubDate>
    <dc:creator>gopal5879</dc:creator>
    <dc:date>2021-02-17T00:54:45Z</dc:date>
    <item>
      <title>Inconsistency in export to .xlsm file using template file Works for  one user, does not for another.</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistency-in-export-to-xlsm-file-using-template-file-Works/m-p/1783253#M1209740</link>
      <description>&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;I have a question. I was able to export to&lt;STRONG&gt; .xlsm&lt;/STRONG&gt; file using template file which works fine. We are exporting to a shared folder. For one user, the export works fine with column frozen at Column G with column A,B,C,D,E,F visible.&lt;/P&gt;&lt;P&gt;For another user, export does not seem to work . A,B,C,D columns are hidden.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure about the inconsistency in export behavior. The users are not computer savvy.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am a bit confused, Can some one please direct&amp;nbsp; where to look and possible hint to resolve this inconsistency in export please?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUB ExportToWorkSheetRevised&lt;/P&gt;&lt;P&gt;' on error resume next&lt;BR /&gt;&lt;BR /&gt;Dim RowCount&lt;BR /&gt;Dim lngLstCol&lt;BR /&gt;Dim lngLstRow&lt;BR /&gt;Dim xRg&lt;BR /&gt;Dim xRgUni&lt;BR /&gt;Dim xFirstAddress&lt;BR /&gt;Dim xStr&lt;BR /&gt;Dim aCell&lt;BR /&gt;Dim ColumnLabel&lt;BR /&gt;Dim objObjectFromRows&lt;BR /&gt;Dim TempCreateCsvList&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'Set objFso = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;'Set objFolder = objFso.GetFolder(excelFolder)&lt;BR /&gt;'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;vlWorkSheetTemplDir = ActiveDocument.Variables("vWorkSheetTemplDir").GetContent.String&lt;BR /&gt;vlWorkSheetTemplFileName = ActiveDocument.Variables("vWorkSheetTemplFileName").GetContent.String&lt;BR /&gt;vTemplFileName = vlWorkSheetTemplDir &amp;amp;"\" &amp;amp; vlWorkSheetTemplFileName &amp;amp; ".xlsm"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;vlWorkSheetDir = ActiveDocument.Variables("vWorkSheetDir").GetContent.String&lt;BR /&gt;vlWorkSheetFileName = ActiveDocument.Variables("vWorkSheetFileName").GetContent.String&lt;BR /&gt;vlFileDayAndTime =ActiveDocument.Variables("vFileDayAndTime").GetContent.String&lt;BR /&gt;vTgtWorkSheetFileName = vlWorkSheetDir &amp;amp;"\" &amp;amp; vlWorkSheetFileName &amp;amp;"_" &amp;amp; vlFileDayAndTime &amp;amp; ".xlsm"&lt;BR /&gt;&lt;BR /&gt;'copy chart to clipboard&lt;BR /&gt;ActiveDocument.GetSheetObject("CH689").CopyTableToClipboard True&lt;BR /&gt;SET xlApp = CreateObject("EXCEL.APPLICATION")&lt;BR /&gt;'SET xlAppConfigList = CreateObject("EXCEL.APPLICATION") 'create confiration list app object&lt;/P&gt;&lt;P&gt;Set xlWorkbook = xlApp.Workbooks.open (vTemplFileName)&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;xlApp.Run "Macro2"&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;xlWorkbook.SaveAs(vTgtWorkSheetFileName)&lt;BR /&gt;Set xlWorksheet = xlWorkbook.Worksheets(1)&lt;BR /&gt;xlWorksheet.Activate&lt;BR /&gt;xlWorksheet.Range("A1").Select&lt;BR /&gt;'Msgbox "Ready to Import"&lt;BR /&gt;xlWorkSheet.Paste xlWorksheet.Range("A1")&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;xlApp.Run "SetListofValues"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#993300"&gt;&lt;STRONG&gt;xlApp.Run "Macro1" ' Macro1&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#993300"&gt;&lt;STRONG&gt;'xlApp.Run "Macro3" ' Macro3 &lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;xlApp.Run "Macro3"&lt;BR /&gt;xlWorkBook.Save&lt;BR /&gt;xlWorkBook.Close&lt;BR /&gt;xlApp.quit&lt;BR /&gt;xlApp = Empty&lt;BR /&gt;End Sub&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 00:54:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistency-in-export-to-xlsm-file-using-template-file-Works/m-p/1783253#M1209740</guid>
      <dc:creator>gopal5879</dc:creator>
      <dc:date>2021-02-17T00:54:45Z</dc:date>
    </item>
  </channel>
</rss>

