<?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: I am trying to export multiple charts in multiple excel sheets within same excel file. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/I-am-trying-to-export-multiple-charts-in-multiple-excel-sheets/m-p/1528818#M44094</link>
    <description>&lt;P&gt;Yes..&lt;/P&gt;&lt;P&gt;Below line is giving error.&lt;/P&gt;&lt;P&gt;XLDoc.Sheets(2).Paste()&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jan 2019 09:03:13 GMT</pubDate>
    <dc:creator>supriyamote</dc:creator>
    <dc:date>2019-01-10T09:03:13Z</dc:date>
    <item>
      <title>I am trying to export multiple charts in multiple excel sheets within same excel file.</title>
      <link>https://community.qlik.com/t5/App-Development/I-am-trying-to-export-multiple-charts-in-multiple-excel-sheets/m-p/1528716#M44092</link>
      <description>&lt;P&gt;but somehow, its is giving me error "Subscript out of range".&lt;/P&gt;&lt;P&gt;My default excel sheet count is 1.&lt;/P&gt;&lt;P&gt;Please find below the code i am using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sub ExcelFile&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;strDate = CDate(Date)&lt;BR /&gt;strDay = DatePart("d", strDate)&lt;BR /&gt;strMonth = DatePart("m", strDate)&lt;BR /&gt;strYear = DatePart("yyyy", strDate)&lt;BR /&gt;If strDay &amp;lt; 10 Then&lt;BR /&gt;strDay = "0" &amp;amp; strDay&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;If strMonth &amp;lt; 10 Then&lt;BR /&gt;strMonth = "0" &amp;amp; strMonth&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;GetFormattedDate = strMonth &amp;amp; "-" &amp;amp; strDay &amp;amp; "-" &amp;amp; strYear&lt;/P&gt;&lt;P&gt;Path = "C:\Users\Desktop\Qlikview\Australia\Final Run\"&lt;BR /&gt;FileName = "Test_" &amp;amp; GetFormattedDate &amp;amp; ".xlsx"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;set XLApp = CreateObject("Excel.Application")&lt;BR /&gt;XLApp.Visible = true&lt;BR /&gt;set XLDoc = XLApp.Workbooks.Add&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ActiveDocument.GetSheetObject("CH01").CopyTableToClipboard true&lt;BR /&gt;XLDoc.Sheets(1).Paste()&lt;BR /&gt;XLDoc.Sheets(1).Rows("1:3000").EntireRow.AutoFit&lt;BR /&gt;&lt;BR /&gt;ActiveDocument.GetSheetObject("CH01").CopyTableToClipboard true&lt;BR /&gt;XLDoc.Sheets(2).Paste()&lt;BR /&gt;XLDoc.Sheets(2).Rows("1:3000").EntireRow.AutoFit&lt;/P&gt;&lt;P&gt;XLDoc.Sheets(1).Name = "Page One"&lt;BR /&gt;XLDoc.Sheets(2).Name = "Page Two"&lt;BR /&gt;XLDoc.Sheets(3).Delete&lt;/P&gt;&lt;P&gt;XLDoc.Sheets(1).Range("A1").Select&lt;BR /&gt;&lt;BR /&gt;ActiveDocument.Save&lt;BR /&gt;ActiveDocument.GetApplication.Quit&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/I-am-trying-to-export-multiple-charts-in-multiple-excel-sheets/m-p/1528716#M44092</guid>
      <dc:creator>supriyamote</dc:creator>
      <dc:date>2024-11-16T21:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to export multiple charts in multiple excel sheets within same excel file.</title>
      <link>https://community.qlik.com/t5/App-Development/I-am-trying-to-export-multiple-charts-in-multiple-excel-sheets/m-p/1528721#M44093</link>
      <description>&lt;P&gt;It would help if you could indicate which line is triggering the error. My guess is that the new Excel workbook is being created with a single tab, and the problem is occurring when you reference tab 2 (Sheets(2)) or 3. The number of tabs in a workbook is user configurable and it may not be the default of 3.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 05:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/I-am-trying-to-export-multiple-charts-in-multiple-excel-sheets/m-p/1528721#M44093</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-01-10T05:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to export multiple charts in multiple excel sheets within same excel file.</title>
      <link>https://community.qlik.com/t5/App-Development/I-am-trying-to-export-multiple-charts-in-multiple-excel-sheets/m-p/1528818#M44094</link>
      <description>&lt;P&gt;Yes..&lt;/P&gt;&lt;P&gt;Below line is giving error.&lt;/P&gt;&lt;P&gt;XLDoc.Sheets(2).Paste()&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 09:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/I-am-trying-to-export-multiple-charts-in-multiple-excel-sheets/m-p/1528818#M44094</guid>
      <dc:creator>supriyamote</dc:creator>
      <dc:date>2019-01-10T09:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to export multiple charts in multiple excel sheets within same excel file.</title>
      <link>https://community.qlik.com/t5/App-Development/I-am-trying-to-export-multiple-charts-in-multiple-excel-sheets/m-p/1528826#M44095</link>
      <description>&lt;P&gt;You will need to add a line of code to create Sheets(2).&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/28018110/add-new-sheet-in-excel-vbscript-controlled" target="_self"&gt;Add sheet in Excel&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And remove the line deleting Sheets(3).&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 09:30:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/I-am-trying-to-export-multiple-charts-in-multiple-excel-sheets/m-p/1528826#M44095</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-01-10T09:30:12Z</dc:date>
    </item>
  </channel>
</rss>

