<?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 Why do users inconsistently get &amp;quot;Macro parse failed. Functionality was lost.&amp;quot; error on AccessPoint doc for Excel export? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182566#M503142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IE Plugin only (v 8.5 not sure which one... QV Server build 6326 and Client Builld 8.50.6206.0409.40 ); IE Version 7.0.5730.13.&lt;/P&gt;&lt;P&gt;Macro (brace yourself!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;''---------------------------------------------------&lt;/P&gt;&lt;P&gt;'====================================================================&lt;BR /&gt;' Full Report AUTOMATED&lt;BR /&gt;'====================================================================&lt;BR /&gt;SUB Full_Report_Automated&lt;/P&gt;&lt;P&gt;Dim answer&lt;BR /&gt; answer=MsgBox("This may take a couple of minutes. Please do not COPY or PASTE during this process." &amp;amp; chr(10) &amp;amp; chr(10) &amp;amp; "Click OK to continue.", 1 ,"Exporting Report to Excel")&lt;/P&gt;&lt;P&gt;if answer = 2 then&lt;BR /&gt; exit sub&lt;BR /&gt;else&lt;BR /&gt; 'Open the destination spreadsheet&lt;BR /&gt; Path = "&lt;A&gt;\\SERVER\Production\_Apps\BRAND\Reports\&lt;/A&gt;"&lt;BR /&gt; Filename = "Brand_View_Sales_Report.xls"&lt;BR /&gt; Set XLApp = CreateObject("Excel.Application")&lt;BR /&gt; XLApp.Visible = False&lt;BR /&gt; Set XLDoc = XLApp.Workbooks.Open(Path &amp;amp; Filename)&lt;/P&gt;&lt;P&gt;' SHEET NAMES DECLARE&lt;BR /&gt; Sheet1 = "ReportGen" ' QV Sheet name&lt;BR /&gt; XLSheetABOUT = "About"&lt;BR /&gt; XLSheet1 = "Summary"&lt;BR /&gt; XLSheet2 = "Products"&lt;BR /&gt; XLSheet3 = "TYLY Var"&lt;BR /&gt; XLSheet4 = "Yesterday"&lt;/P&gt;&lt;P&gt;' Update Report information on ABOUT tab&lt;BR /&gt; Dim BaseRow, BaseColumn&lt;BR /&gt; BaseColumn = 2&lt;BR /&gt; BaseRow = 12&lt;BR /&gt; XLDoc.Worksheets(XLSheetABOUT).Activate&lt;BR /&gt; CALL CurrentSelections ( XLApp, BaseRow, BaseColumn )&lt;/P&gt;&lt;P&gt;' Current Date (of report generation)&lt;BR /&gt; dim today&lt;BR /&gt; today = date&lt;BR /&gt; XLApp.Cells(8, 3).Value = today&lt;/P&gt;&lt;P&gt;' COPY AND PASTE LAST UPDATE TIMESTAMP TO THE THREE TABS&lt;BR /&gt; ActiveDocument.Sheets(Sheet1).Activate&lt;BR /&gt;&lt;BR /&gt; ' Export Summary Sheet&lt;BR /&gt; XLDoc.Worksheets(XLSheet1).Activate&lt;BR /&gt; ActiveDocument.GetSheetObject("TX_UPDATE").CopyTextToClipboard&lt;BR /&gt; XLDoc.Worksheets(XLSheet1).Range("C1").Select&lt;BR /&gt; XLDoc.Worksheets(XLSheet1).Paste()&lt;BR /&gt; CALL Export_Summary ( XLApp, XLDoc, Sheet1, XLSheet1)&lt;/P&gt;&lt;P&gt;' Export %Var Reports&lt;BR /&gt; XLDoc.Worksheets(XLSheet3).Activate&lt;BR /&gt; ActiveDocument.GetSheetObject("TX_UPDATE").CopyTextToClipboard&lt;BR /&gt; XLDoc.Worksheets(XLSheet3).Range("C1").Select&lt;BR /&gt; XLDoc.Worksheets(XLSheet3).Paste()&lt;BR /&gt; CALL Export_TYLY_VAR ( XLApp, XLDoc, Sheet1, XLSheet3)&lt;BR /&gt; XLDoc.Worksheets(XLSheet3).Range("A1").Select&lt;/P&gt;&lt;P&gt;' End up on Page 1&lt;BR /&gt; XLDoc.Worksheets(XLSheetABOUT).Activate&lt;BR /&gt; XLDoc.Worksheets(XLSheetABOUT).Range("A1").Select&lt;/P&gt;&lt;P&gt;XLApp.Visible = TRUE&lt;BR /&gt;&lt;BR /&gt; If Err.Number &amp;lt;&amp;gt; 0 Then&lt;BR /&gt; MsgBox "Not all sheets were properly loaded. Please verify the data."&lt;BR /&gt; End If&lt;/P&gt;&lt;P&gt;' SAVE FILE&lt;BR /&gt; FileDate = Month(Date()) &amp;amp; "-" &amp;amp; Day(Date()) &amp;amp; "-" &amp;amp; year(Date())&lt;BR /&gt; File_Description = inputbox ("Please enter one or two words to describe this file (e.g. BO Knits)" &amp;amp; chr(10) &amp;amp; "Note: The file will be saved to your H:\ drive, My Documents.","Name your File")&lt;BR /&gt; Destination_Path = "H:\My Documents\"&lt;BR /&gt; FullDocName = Destination_Path &amp;amp; cstr(FileDate) &amp;amp; " " &amp;amp; File_Description &amp;amp; " - QlikView Global Analytics Summary"&lt;BR /&gt; XLApp.DisplayAlerts = False&lt;BR /&gt; XLDoc.SaveAs FullDocName&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'====================================================================&lt;BR /&gt;' EXPORT Summary&lt;BR /&gt;'====================================================================&lt;BR /&gt;SUB Export_Summary ( XLApp, XLDoc, QVSheet, SheetID )&lt;/P&gt;&lt;P&gt;''''' Select MTD&lt;BR /&gt; ActiveDocument.Fields("_.timeframe_desc").Select "MTD"&lt;/P&gt;&lt;P&gt;'''''MTD Copy &amp;amp; Paste base data to Excel&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_LIQ_VAR", "J49")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_LIQ_TY", "I49")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_P_VAR", "H49")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_P_TY", "G49")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_RP_VAR", "F49")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_RP_TY", "E49")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_TOT_VAR", "D49")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_TOT_TY", "C49")&lt;BR /&gt;&lt;BR /&gt;''''' Select WTD&lt;BR /&gt; ActiveDocument.Fields("_.timeframe_desc").Select "WTD"&lt;BR /&gt;'''''WTD Copy &amp;amp; Paste base data to Excel&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_LIQ_VAR", "J27")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_LIQ_TY", "I27")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_P_VAR", "H27")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_P_TY", "G27")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_RP_VAR", "F27")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_RP_TY", "E27")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_TOT_VAR", "D27")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_TOT_TY", "C27")&lt;BR /&gt;&lt;BR /&gt;''''' Select LW&lt;BR /&gt; ActiveDocument.Fields("_.timeframe_desc").Select "L Week"&lt;BR /&gt;'''''LAST WEEK Copy &amp;amp; Paste base data to Excel&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_LIQ_VAR", "J5")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_LIQ_TY", "I5")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_P_VAR", "H5")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_P_TY", "G5")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_RP_VAR", "F5")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_RP_TY", "E5")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_TOT_VAR", "D5")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_TOT_TY", "C5")&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;'====================================================================&lt;BR /&gt;' EXPORT TY LY VARIANCE&lt;BR /&gt;'====================================================================&lt;BR /&gt;SUB Export_TYLY_VAR ( XLApp, XLDoc, QVSheet, SheetID )&lt;/P&gt;&lt;P&gt;''''' LW&lt;BR /&gt; ActiveDocument.Fields("_.timeframe_desc").Select "L Week"&lt;BR /&gt; ' NET SALES&lt;BR /&gt; ActiveDocument.Fields("x.metric_desc").Select "Net Sales"&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_VAR", "C4")&lt;BR /&gt; ' GM$&lt;BR /&gt; ActiveDocument.Fields("x.metric_desc").Select "GM$"&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_VAR", "N4")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;''''' WTD&lt;BR /&gt; ActiveDocument.Fields("_.timeframe_desc").Select "WTD"&lt;BR /&gt; ' NET SALES&lt;BR /&gt; ActiveDocument.Fields("x.metric_desc").Select "Net Sales"&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_VAR", "C20")&lt;BR /&gt; ' GM$&lt;BR /&gt; ActiveDocument.Fields("x.metric_desc").Select "GM$"&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_VAR", "N20")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;''''' MTD&lt;BR /&gt; ActiveDocument.Fields("_.timeframe_desc").Select "MTD"&lt;BR /&gt; ' NET SALES&lt;BR /&gt; ActiveDocument.Fields("x.metric_desc").Select "Net Sales"&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_VAR", "C36")&lt;BR /&gt; ' GM$&lt;BR /&gt; ActiveDocument.Fields("x.metric_desc").Select "GM$"&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_VAR", "N36")&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'====================================================================&lt;BR /&gt;' Export Chart routine&lt;BR /&gt;'====================================================================&lt;BR /&gt;Sub ExportChart( XLS, SheetID, ObjID, RangeID)&lt;/P&gt;&lt;P&gt;XLS.Worksheets(SheetID).Activate&lt;BR /&gt; ActiveDocument.GetSheetObject(ObjID).CopyTableToClipboard True&lt;BR /&gt; XLS.Worksheets(SheetID).Range(RangeID).Select&lt;BR /&gt; XLS.Worksheets(SheetID).Paste()&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'====================================================================&lt;BR /&gt;' Current Selections&lt;BR /&gt;'====================================================================&lt;BR /&gt;SUB CurrentSelections ( XLApp, BaseRow, BaseColumn )&lt;BR /&gt; set x = ActiveDocument.GetCurrentSelections&lt;BR /&gt; s = x.Selections&lt;BR /&gt; v = x.VarId&lt;BR /&gt; SecondColumn = BaseColumn + 1&lt;BR /&gt; XLApp.Cells(BaseRow, BaseColumn).Value = "Field"&lt;BR /&gt; XLApp.Cells(BaseRow, SecondColumn).Value = "Selection"&lt;BR /&gt;&lt;BR /&gt; for i = lbound(s) to ubound(s)&lt;BR /&gt;' msgbox v(i)&amp;amp;" = "&amp;amp;s(i)&lt;BR /&gt; field = v(i)&lt;BR /&gt; value = s(i)&lt;BR /&gt; XLApp.Cells(BaseRow + i, BaseColumn).Value = field&lt;BR /&gt; XLApp.Cells(BaseRow + i,SecondColumn).Value = value&lt;BR /&gt;&lt;BR /&gt; next&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Mar 2010 22:03:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-18T22:03:34Z</dc:date>
    <item>
      <title>Why do users inconsistently get "Macro parse failed. Functionality was lost." error on AccessPoint doc for Excel export?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182562#M503138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm struggling with the "Macro parse failed..." error on an AccessPoint document (developer 8.5, Server 8.5). The document has a button that generates an Excel report (exports various sheet objects to a preformated Excel template file, makes selections within QlikView) and prompts user for a name and file folder/path.&lt;/P&gt;&lt;P&gt;The macro works fine in development always (when there are no typos!) and in production (AccesPoint) most of the time. I can't figure out why some users get the Macro parse failed error and can't export anything (using the macro) while others have no problems. I experience the error ocassionally but after the export has completed.&lt;/P&gt;&lt;P&gt;The Excel file template is stored in a shared directory and the default file path for QlikView to save the file is on the user's local drive (My Docs), so I don't think permissions are an issue. But, then again, I really have no idea.&lt;/P&gt;&lt;P&gt;Thoughts anyone?!&lt;/P&gt;&lt;P&gt;Thanks / Gracias!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 15:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182562#M503138</guid>
      <dc:creator />
      <dc:date>2010-03-16T15:51:05Z</dc:date>
    </item>
    <item>
      <title>Why do users inconsistently get "Macro parse failed. Functionality was lost." error on AccessPoint doc for Excel export?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182563#M503139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps different "Always Override Security" settings between the different users?&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 07:15:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182563#M503139</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-03-17T07:15:19Z</dc:date>
    </item>
    <item>
      <title>Why do users inconsistently get "Macro parse failed. Functionality was lost." error on AccessPoint doc for Excel export?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182564#M503140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob - I thought I could only have one Macro security setting for users. (Below is the Doc Properties &amp;lt; Security tab.)&lt;/P&gt;&lt;P&gt;Is there a way to setup different security for users? I guess I'd want to have two types of users: the majority are just standard level (to avoid this parse fail) and a few users have admin level. Honestly, though, at present we keep our Access Point documents 'protected' from users and do not allow server objects or reports. Not sure if what I'm saying has anything to do with this macro parse error or the security settings in QlikView.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x700/__key/CommunityServer.Discussions.Components.Files/11/2425.Picture1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 14:41:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182564#M503140</guid>
      <dc:creator />
      <dc:date>2010-03-17T14:41:06Z</dc:date>
    </item>
    <item>
      <title>Why do users inconsistently get "Macro parse failed. Functionality was lost." error on AccessPoint doc for Excel export?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182565#M503141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tyler - what client(s) (Win, IE, AJAX) are your clients using? And what version?&lt;/P&gt;&lt;P&gt;And can you post the macro?&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 02:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182565#M503141</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-03-18T02:36:02Z</dc:date>
    </item>
    <item>
      <title>Why do users inconsistently get "Macro parse failed. Functionality was lost." error on AccessPoint doc for Excel export?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182566#M503142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IE Plugin only (v 8.5 not sure which one... QV Server build 6326 and Client Builld 8.50.6206.0409.40 ); IE Version 7.0.5730.13.&lt;/P&gt;&lt;P&gt;Macro (brace yourself!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;''---------------------------------------------------&lt;/P&gt;&lt;P&gt;'====================================================================&lt;BR /&gt;' Full Report AUTOMATED&lt;BR /&gt;'====================================================================&lt;BR /&gt;SUB Full_Report_Automated&lt;/P&gt;&lt;P&gt;Dim answer&lt;BR /&gt; answer=MsgBox("This may take a couple of minutes. Please do not COPY or PASTE during this process." &amp;amp; chr(10) &amp;amp; chr(10) &amp;amp; "Click OK to continue.", 1 ,"Exporting Report to Excel")&lt;/P&gt;&lt;P&gt;if answer = 2 then&lt;BR /&gt; exit sub&lt;BR /&gt;else&lt;BR /&gt; 'Open the destination spreadsheet&lt;BR /&gt; Path = "&lt;A&gt;\\SERVER\Production\_Apps\BRAND\Reports\&lt;/A&gt;"&lt;BR /&gt; Filename = "Brand_View_Sales_Report.xls"&lt;BR /&gt; Set XLApp = CreateObject("Excel.Application")&lt;BR /&gt; XLApp.Visible = False&lt;BR /&gt; Set XLDoc = XLApp.Workbooks.Open(Path &amp;amp; Filename)&lt;/P&gt;&lt;P&gt;' SHEET NAMES DECLARE&lt;BR /&gt; Sheet1 = "ReportGen" ' QV Sheet name&lt;BR /&gt; XLSheetABOUT = "About"&lt;BR /&gt; XLSheet1 = "Summary"&lt;BR /&gt; XLSheet2 = "Products"&lt;BR /&gt; XLSheet3 = "TYLY Var"&lt;BR /&gt; XLSheet4 = "Yesterday"&lt;/P&gt;&lt;P&gt;' Update Report information on ABOUT tab&lt;BR /&gt; Dim BaseRow, BaseColumn&lt;BR /&gt; BaseColumn = 2&lt;BR /&gt; BaseRow = 12&lt;BR /&gt; XLDoc.Worksheets(XLSheetABOUT).Activate&lt;BR /&gt; CALL CurrentSelections ( XLApp, BaseRow, BaseColumn )&lt;/P&gt;&lt;P&gt;' Current Date (of report generation)&lt;BR /&gt; dim today&lt;BR /&gt; today = date&lt;BR /&gt; XLApp.Cells(8, 3).Value = today&lt;/P&gt;&lt;P&gt;' COPY AND PASTE LAST UPDATE TIMESTAMP TO THE THREE TABS&lt;BR /&gt; ActiveDocument.Sheets(Sheet1).Activate&lt;BR /&gt;&lt;BR /&gt; ' Export Summary Sheet&lt;BR /&gt; XLDoc.Worksheets(XLSheet1).Activate&lt;BR /&gt; ActiveDocument.GetSheetObject("TX_UPDATE").CopyTextToClipboard&lt;BR /&gt; XLDoc.Worksheets(XLSheet1).Range("C1").Select&lt;BR /&gt; XLDoc.Worksheets(XLSheet1).Paste()&lt;BR /&gt; CALL Export_Summary ( XLApp, XLDoc, Sheet1, XLSheet1)&lt;/P&gt;&lt;P&gt;' Export %Var Reports&lt;BR /&gt; XLDoc.Worksheets(XLSheet3).Activate&lt;BR /&gt; ActiveDocument.GetSheetObject("TX_UPDATE").CopyTextToClipboard&lt;BR /&gt; XLDoc.Worksheets(XLSheet3).Range("C1").Select&lt;BR /&gt; XLDoc.Worksheets(XLSheet3).Paste()&lt;BR /&gt; CALL Export_TYLY_VAR ( XLApp, XLDoc, Sheet1, XLSheet3)&lt;BR /&gt; XLDoc.Worksheets(XLSheet3).Range("A1").Select&lt;/P&gt;&lt;P&gt;' End up on Page 1&lt;BR /&gt; XLDoc.Worksheets(XLSheetABOUT).Activate&lt;BR /&gt; XLDoc.Worksheets(XLSheetABOUT).Range("A1").Select&lt;/P&gt;&lt;P&gt;XLApp.Visible = TRUE&lt;BR /&gt;&lt;BR /&gt; If Err.Number &amp;lt;&amp;gt; 0 Then&lt;BR /&gt; MsgBox "Not all sheets were properly loaded. Please verify the data."&lt;BR /&gt; End If&lt;/P&gt;&lt;P&gt;' SAVE FILE&lt;BR /&gt; FileDate = Month(Date()) &amp;amp; "-" &amp;amp; Day(Date()) &amp;amp; "-" &amp;amp; year(Date())&lt;BR /&gt; File_Description = inputbox ("Please enter one or two words to describe this file (e.g. BO Knits)" &amp;amp; chr(10) &amp;amp; "Note: The file will be saved to your H:\ drive, My Documents.","Name your File")&lt;BR /&gt; Destination_Path = "H:\My Documents\"&lt;BR /&gt; FullDocName = Destination_Path &amp;amp; cstr(FileDate) &amp;amp; " " &amp;amp; File_Description &amp;amp; " - QlikView Global Analytics Summary"&lt;BR /&gt; XLApp.DisplayAlerts = False&lt;BR /&gt; XLDoc.SaveAs FullDocName&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'====================================================================&lt;BR /&gt;' EXPORT Summary&lt;BR /&gt;'====================================================================&lt;BR /&gt;SUB Export_Summary ( XLApp, XLDoc, QVSheet, SheetID )&lt;/P&gt;&lt;P&gt;''''' Select MTD&lt;BR /&gt; ActiveDocument.Fields("_.timeframe_desc").Select "MTD"&lt;/P&gt;&lt;P&gt;'''''MTD Copy &amp;amp; Paste base data to Excel&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_LIQ_VAR", "J49")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_LIQ_TY", "I49")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_P_VAR", "H49")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_P_TY", "G49")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_RP_VAR", "F49")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_RP_TY", "E49")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_TOT_VAR", "D49")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_TOT_TY", "C49")&lt;BR /&gt;&lt;BR /&gt;''''' Select WTD&lt;BR /&gt; ActiveDocument.Fields("_.timeframe_desc").Select "WTD"&lt;BR /&gt;'''''WTD Copy &amp;amp; Paste base data to Excel&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_LIQ_VAR", "J27")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_LIQ_TY", "I27")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_P_VAR", "H27")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_P_TY", "G27")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_RP_VAR", "F27")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_RP_TY", "E27")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_TOT_VAR", "D27")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_TOT_TY", "C27")&lt;BR /&gt;&lt;BR /&gt;''''' Select LW&lt;BR /&gt; ActiveDocument.Fields("_.timeframe_desc").Select "L Week"&lt;BR /&gt;'''''LAST WEEK Copy &amp;amp; Paste base data to Excel&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_LIQ_VAR", "J5")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_LIQ_TY", "I5")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_P_VAR", "H5")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_P_TY", "G5")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_RP_VAR", "F5")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_RP_TY", "E5")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_TOT_VAR", "D5")&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_TOT_TY", "C5")&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;'====================================================================&lt;BR /&gt;' EXPORT TY LY VARIANCE&lt;BR /&gt;'====================================================================&lt;BR /&gt;SUB Export_TYLY_VAR ( XLApp, XLDoc, QVSheet, SheetID )&lt;/P&gt;&lt;P&gt;''''' LW&lt;BR /&gt; ActiveDocument.Fields("_.timeframe_desc").Select "L Week"&lt;BR /&gt; ' NET SALES&lt;BR /&gt; ActiveDocument.Fields("x.metric_desc").Select "Net Sales"&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_VAR", "C4")&lt;BR /&gt; ' GM$&lt;BR /&gt; ActiveDocument.Fields("x.metric_desc").Select "GM$"&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_VAR", "N4")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;''''' WTD&lt;BR /&gt; ActiveDocument.Fields("_.timeframe_desc").Select "WTD"&lt;BR /&gt; ' NET SALES&lt;BR /&gt; ActiveDocument.Fields("x.metric_desc").Select "Net Sales"&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_VAR", "C20")&lt;BR /&gt; ' GM$&lt;BR /&gt; ActiveDocument.Fields("x.metric_desc").Select "GM$"&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_VAR", "N20")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;''''' MTD&lt;BR /&gt; ActiveDocument.Fields("_.timeframe_desc").Select "MTD"&lt;BR /&gt; ' NET SALES&lt;BR /&gt; ActiveDocument.Fields("x.metric_desc").Select "Net Sales"&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_VAR", "C36")&lt;BR /&gt; ' GM$&lt;BR /&gt; ActiveDocument.Fields("x.metric_desc").Select "GM$"&lt;BR /&gt; Call ExportChart(XLDoc, SheetID, "SUM_VAR", "N36")&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'====================================================================&lt;BR /&gt;' Export Chart routine&lt;BR /&gt;'====================================================================&lt;BR /&gt;Sub ExportChart( XLS, SheetID, ObjID, RangeID)&lt;/P&gt;&lt;P&gt;XLS.Worksheets(SheetID).Activate&lt;BR /&gt; ActiveDocument.GetSheetObject(ObjID).CopyTableToClipboard True&lt;BR /&gt; XLS.Worksheets(SheetID).Range(RangeID).Select&lt;BR /&gt; XLS.Worksheets(SheetID).Paste()&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'====================================================================&lt;BR /&gt;' Current Selections&lt;BR /&gt;'====================================================================&lt;BR /&gt;SUB CurrentSelections ( XLApp, BaseRow, BaseColumn )&lt;BR /&gt; set x = ActiveDocument.GetCurrentSelections&lt;BR /&gt; s = x.Selections&lt;BR /&gt; v = x.VarId&lt;BR /&gt; SecondColumn = BaseColumn + 1&lt;BR /&gt; XLApp.Cells(BaseRow, BaseColumn).Value = "Field"&lt;BR /&gt; XLApp.Cells(BaseRow, SecondColumn).Value = "Selection"&lt;BR /&gt;&lt;BR /&gt; for i = lbound(s) to ubound(s)&lt;BR /&gt;' msgbox v(i)&amp;amp;" = "&amp;amp;s(i)&lt;BR /&gt; field = v(i)&lt;BR /&gt; value = s(i)&lt;BR /&gt; XLApp.Cells(BaseRow + i, BaseColumn).Value = field&lt;BR /&gt; XLApp.Cells(BaseRow + i,SecondColumn).Value = value&lt;BR /&gt;&lt;BR /&gt; next&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 22:03:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182566#M503142</guid>
      <dc:creator />
      <dc:date>2010-03-18T22:03:34Z</dc:date>
    </item>
    <item>
      <title>Why do users inconsistently get "Macro parse failed. Functionality was lost." error on AccessPoint doc for Excel export?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182567#M503143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having basically the same problem with a similar macro. The macro works fine on my machine and when I run it through IE on the server I have no problems. I had other people try it in their Qlikview application and it works fine and then when they go through IE they get the macro parse failed. I am thinking it has something to do with the users browsers settings or the QlikOCX Control plugin but haven't found anything yet.&lt;/P&gt;&lt;P&gt;I am using Qlikview 8.20.5423.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 14:37:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182567#M503143</guid>
      <dc:creator />
      <dc:date>2010-06-09T14:37:05Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Why do users inconsistently get "Macro parse failed. Functionality was lost." error on AccessPoint doc for Excel export?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182568#M503144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you already tried Shift+Ctrl+M =&amp;gt; "Give System Access to Module Script" (in IEPlugin and Analyzer) ?&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 14:50:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182568#M503144</guid>
      <dc:creator>biester</dc:creator>
      <dc:date>2010-06-09T14:50:16Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Why do users inconsistently get "Macro parse failed. Functionality was lost." error on AccessPoint doc for Excel export?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182569#M503145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Security settings is obviously the first area to look into... Another possibility (long shot) that have been known to cause "random" errors is timing - for example, when you Activate a sheet, you need to wait for all the objects on the sheet to be calculated. For this purpose, try inserting&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;in key points, especially after Active commands.&lt;/P&gt;&lt;P&gt;Not sure that this is your problem, but it might be...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 15:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182569#M503145</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-06-09T15:07:20Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Why do users inconsistently get "Macro parse failed. Functionality was lost." error on AccessPoint doc for Excel export?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182570#M503146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are right Oleg, I had a macro running when the document was opened and I think that might be causing the "Macro parse failed". I think it might be trying to run before the user selects their security settings. I removed it and we are not getting the error anymore.&lt;/P&gt;&lt;P&gt;Another error that I am getting is when the macro tries to save an excel file. I think the "Macro parse failed" error is happening because that user does not have access to write to the folder. That would make sense eh?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 15:35:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182570#M503146</guid>
      <dc:creator />
      <dc:date>2010-06-09T15:35:11Z</dc:date>
    </item>
    <item>
      <title>Why do users inconsistently get "Macro parse failed. Functionality was lost." error on AccessPoint doc for Excel export?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182571#M503147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has there been any definitive answer to this as I've got the same problem when trying to export tables to Excel. My test code is as follows:&lt;/P&gt;&lt;P&gt;Dim xlSheet&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; Set xlSheet = xlDoc.Worksheets(1)&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;' Next command causes error:&lt;BR /&gt; ActiveDocument.GetSheetObject("CH36").CopyTableToClipboard true&lt;BR /&gt; xlSheet.Paste xlSheet.Range("A5")&lt;/P&gt;&lt;P&gt;Works fine locally, but fails through IE plugin and also when using Analyzer to load the qvw from the server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 15:31:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182571#M503147</guid>
      <dc:creator>r3iuk</dc:creator>
      <dc:date>2010-11-29T15:31:53Z</dc:date>
    </item>
    <item>
      <title>Why do users inconsistently get "Macro parse failed. Functionality was lost." error on AccessPoint doc for Excel export?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182572#M503148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has to be security - perhaps the server doesn't allow access to its clipboard?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV id="refHTML"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 23:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182572#M503148</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-12-01T23:46:41Z</dc:date>
    </item>
    <item>
      <title>Why do users inconsistently get "Macro parse failed. Functionality was lost." error on AccessPoint doc for Excel export?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182573#M503149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay - where do I look to determine if there are any issues with clipboard security?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 10:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182573#M503149</guid>
      <dc:creator>r3iuk</dc:creator>
      <dc:date>2010-12-02T10:21:45Z</dc:date>
    </item>
    <item>
      <title>Why do users inconsistently get "Macro parse failed. Functionality was lost." error on AccessPoint doc for Excel export?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182574#M503150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That would be a question for a different forum... Something for Windows Network Administrators? You can try your luck in the QlikView Server forum, but I doubt too many people know this stuff...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV id="refHTML"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 15:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182574#M503150</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-12-02T15:38:06Z</dc:date>
    </item>
    <item>
      <title>Why do users inconsistently get "Macro parse failed. Functionality was lost." error on AccessPoint doc for Excel export?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182575#M503151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upgrading the QlikView server software to the latest version has solved my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 14:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182575#M503151</guid>
      <dc:creator>r3iuk</dc:creator>
      <dc:date>2010-12-06T14:38:14Z</dc:date>
    </item>
    <item>
      <title>Why do users inconsistently get "Macro parse failed. Functionality was lost." error on AccessPoint doc for Excel export?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182576#M503152</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;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;ActiveDocument.GetSheetObject("CH36").CopyTableToClipboard true&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Just wondering: if there are 10 concurrent users in server pressing same button same time, how does the server differentiate between the clipboards ?&lt;/P&gt;&lt;P&gt;-Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 11:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-users-inconsistently-get-quot-Macro-parse-failed/m-p/182576#M503152</guid>
      <dc:creator />
      <dc:date>2010-12-07T11:09:12Z</dc:date>
    </item>
  </channel>
</rss>

