<?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 Suppressing macrosecurity module security dialog in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Suppressing-macrosecurity-module-security-dialog/m-p/173664#M42760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I created a macro that writes entries onto a MS Excel spreadsheet on a shared path. It works great except that when a new user tries to access the document from Server 9. The macro when run returns a Parse Macro Failured message.&lt;/P&gt;&lt;P&gt;Some users receive a "Module Security for Document" window. If the user has the luxuary of getting this message they can correctly select 'Allow any macro (only for trusted documents)', and the macro is likely to work fine. However it doesnt always appear.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3877_sourceID:3877" /&gt;&lt;BR /&gt;&lt;BR /&gt;As a QlikView developer im unsure how to deploys a fix so that all users can use the macro without having the burden of selecting the corrrect macro configuration.&lt;BR /&gt;&lt;BR /&gt;From my initial research I found that the macro configuration should be 'Allow any Macro (only for trusted documents)'. But this option doesn't always appear on the new user PC.&lt;/P&gt;&lt;P&gt;The following user forums are useful but there seems to be conflicting fixes and im a little unsure about registry changes.&lt;/P&gt;&lt;P&gt;http://www.qlikblog.at/523/qliktip-19-suppressing-macrosecurity-module-security-dialog-qlikviewserverqlikviewdocuments/&lt;BR /&gt;http://community.qlik.com/forums/t/33774.aspx&lt;BR /&gt;http://community.qlik.com/forums/t/16005.aspx&lt;BR /&gt;http://community.qlik.com/forums/t/17220.aspx&lt;BR /&gt;&lt;BR /&gt;For your reference here is my macro script.&lt;BR /&gt;-------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Sub SubmitQuestionnaire&lt;BR /&gt;Set oXL=CreateObject("Excel.Application")&lt;BR /&gt;"Username").GetContent.String&lt;BR /&gt;set DATA1 = ActiveDocument.GetApplication.GetProperties&lt;BR /&gt;now()&lt;BR /&gt;set temp = ActiveDocument.GetApplication.GetProperties&lt;BR /&gt;mid(temp.UserName,4)&lt;BR /&gt;set vCommentsToExcel = ActiveDocument.Variables("vUserEmail")&lt;BR /&gt;String&lt;BR /&gt;set vCommentsToExcel = ActiveDocument.Variables("vUserPhone")&lt;BR /&gt;String&lt;BR /&gt;set vCommentsToExcel = ActiveDocument.Variables("Quest1Answer")&lt;BR /&gt;String&lt;BR /&gt;set vCommentsToExcel = ActiveDocument.Variables("Quest2Answer")&lt;BR /&gt;String&lt;BR /&gt;set vCommentsToExcel = ActiveDocument.Variables("Quest3Answer")&lt;BR /&gt;String&lt;BR /&gt;set vCommentsToExcel = ActiveDocument.Variables("vOtherFeedback")&lt;BR /&gt;String&lt;BR /&gt;"\\Nmh-bus01\QVDataSource\QlikView Questionnaires\Question Answers.xls"&lt;BR /&gt;set oWB = oXL.Workbooks.Open(f_name)&lt;BR /&gt;set oSH = oWB.Worksheets.Item(1)&lt;BR /&gt;"a1:a1000")&lt;BR /&gt;Set c = .Find(strIndex, , , 2, 1, 2, 0)&lt;BR /&gt;If Not c Is Nothing Then&lt;BR /&gt;Do&lt;BR /&gt;Set c = .FindNext(c)&lt;BR /&gt;Loop While Not c Is Nothing And c.Address &amp;lt;&amp;gt; firstAddress&lt;BR /&gt;End If&lt;BR /&gt;End With&lt;BR /&gt;if VarHolder = 100 then&lt;BR /&gt;msgbox("It appears you have already submitted a questionnaire. To resubmit please delete old questionnaire?")&lt;BR /&gt;set oSH = Nothing&lt;BR /&gt;set oWB = nothing&lt;BR /&gt;set oXL = nothing&lt;BR /&gt;&lt;BR /&gt;'CLEAR SELECTIONS IF QUESTIONNAIRE ALREADY SUBMITTED&lt;BR /&gt;set v = ActiveDocument.Variables("vUserEmail")&lt;BR /&gt;"",true&lt;BR /&gt;set v = ActiveDocument.Variables("vUserPhone")&lt;BR /&gt;"",true&lt;BR /&gt;set v = ActiveDocument.Variables("Quest1Answer")&lt;BR /&gt;"",true&lt;BR /&gt;set v = ActiveDocument.Variables("Quest2Answer")&lt;BR /&gt;"",true&lt;BR /&gt;set v = ActiveDocument.Variables("Quest3Answer")&lt;BR /&gt;"",true&lt;BR /&gt;set v = ActiveDocument.Variables("vOtherFeedback")&lt;BR /&gt;"",true&lt;BR /&gt;exit sub&lt;BR /&gt;else&lt;BR /&gt;&lt;BR /&gt;'PASTE THE VALUES INTO EXCEL SHEET SPECIFIED&lt;BR /&gt;'username index&lt;BR /&gt;"A65536").End(-4162).Offset(1,0).FormulaR1C1 = strIndex&lt;BR /&gt;'date submitted&lt;BR /&gt;"A65536").End(-4162).Offset(0,1).FormulaR1C1 = VarHolder1&lt;BR /&gt;'user login&lt;BR /&gt;"A65536").End(-4162).Offset(0,2).FormulaR1C1 = VarHolder2&lt;BR /&gt;'optional user contact details&lt;BR /&gt;"A65536").End(-4162).Offset(0,3).FormulaR1C1 = VarHolder3&lt;BR /&gt;"A65536").End(-4162).Offset(0,4).FormulaR1C1 = VarHolder4&lt;BR /&gt;'question answers 1-3&lt;BR /&gt;"A65536").End(-4162).Offset(0,5).FormulaR1C1 = VarHolder5&lt;BR /&gt;"A65536").End(-4162).Offset(0,6).FormulaR1C1 = VarHolder6&lt;BR /&gt;"A65536").End(-4162).Offset(0,7).FormulaR1C1 = VarHolder7&lt;BR /&gt;'additional feedback&lt;BR /&gt;"A65536").End(-4162).Offset(0,8).FormulaR1C1 = VarHolder8&lt;BR /&gt;If f_name="False" then&lt;BR /&gt;Set oXL=nothing&lt;BR /&gt;Exit sub&lt;BR /&gt;End If&lt;BR /&gt;Set oSH=nothing&lt;BR /&gt;Set oWB=nothing&lt;BR /&gt;Set oXL=nothing&lt;BR /&gt;&lt;BR /&gt;'CLEAR SELECTIONS AFTER SUBMISSION&lt;BR /&gt;set v = ActiveDocument.Variables("vUserEmail")&lt;BR /&gt;"",true&lt;BR /&gt;set v = ActiveDocument.Variables("vUserPhone")&lt;BR /&gt;"",true&lt;BR /&gt;set v = ActiveDocument.Variables("Quest1Answer")&lt;BR /&gt;"",true&lt;BR /&gt;set v = ActiveDocument.Variables("Quest2Answer")&lt;BR /&gt;"",true&lt;BR /&gt;set v = ActiveDocument.Variables("Quest3Answer")&lt;BR /&gt;"",true&lt;BR /&gt;set v = ActiveDocument.Variables("vOtherFeedback")&lt;BR /&gt;"",true&lt;BR /&gt;msgbox("Thank you for completing the 'March 2011 - QlikView Questionnaire. Your answers will be reflected in the next report refresh.")&lt;BR /&gt;end if&lt;BR /&gt;End Sub&lt;BR /&gt;-------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Mar 2011 10:45:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-22T10:45:42Z</dc:date>
    <item>
      <title>Suppressing macrosecurity module security dialog</title>
      <link>https://community.qlik.com/t5/QlikView/Suppressing-macrosecurity-module-security-dialog/m-p/173664#M42760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I created a macro that writes entries onto a MS Excel spreadsheet on a shared path. It works great except that when a new user tries to access the document from Server 9. The macro when run returns a Parse Macro Failured message.&lt;/P&gt;&lt;P&gt;Some users receive a "Module Security for Document" window. If the user has the luxuary of getting this message they can correctly select 'Allow any macro (only for trusted documents)', and the macro is likely to work fine. However it doesnt always appear.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3877_sourceID:3877" /&gt;&lt;BR /&gt;&lt;BR /&gt;As a QlikView developer im unsure how to deploys a fix so that all users can use the macro without having the burden of selecting the corrrect macro configuration.&lt;BR /&gt;&lt;BR /&gt;From my initial research I found that the macro configuration should be 'Allow any Macro (only for trusted documents)'. But this option doesn't always appear on the new user PC.&lt;/P&gt;&lt;P&gt;The following user forums are useful but there seems to be conflicting fixes and im a little unsure about registry changes.&lt;/P&gt;&lt;P&gt;http://www.qlikblog.at/523/qliktip-19-suppressing-macrosecurity-module-security-dialog-qlikviewserverqlikviewdocuments/&lt;BR /&gt;http://community.qlik.com/forums/t/33774.aspx&lt;BR /&gt;http://community.qlik.com/forums/t/16005.aspx&lt;BR /&gt;http://community.qlik.com/forums/t/17220.aspx&lt;BR /&gt;&lt;BR /&gt;For your reference here is my macro script.&lt;BR /&gt;-------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Sub SubmitQuestionnaire&lt;BR /&gt;Set oXL=CreateObject("Excel.Application")&lt;BR /&gt;"Username").GetContent.String&lt;BR /&gt;set DATA1 = ActiveDocument.GetApplication.GetProperties&lt;BR /&gt;now()&lt;BR /&gt;set temp = ActiveDocument.GetApplication.GetProperties&lt;BR /&gt;mid(temp.UserName,4)&lt;BR /&gt;set vCommentsToExcel = ActiveDocument.Variables("vUserEmail")&lt;BR /&gt;String&lt;BR /&gt;set vCommentsToExcel = ActiveDocument.Variables("vUserPhone")&lt;BR /&gt;String&lt;BR /&gt;set vCommentsToExcel = ActiveDocument.Variables("Quest1Answer")&lt;BR /&gt;String&lt;BR /&gt;set vCommentsToExcel = ActiveDocument.Variables("Quest2Answer")&lt;BR /&gt;String&lt;BR /&gt;set vCommentsToExcel = ActiveDocument.Variables("Quest3Answer")&lt;BR /&gt;String&lt;BR /&gt;set vCommentsToExcel = ActiveDocument.Variables("vOtherFeedback")&lt;BR /&gt;String&lt;BR /&gt;"\\Nmh-bus01\QVDataSource\QlikView Questionnaires\Question Answers.xls"&lt;BR /&gt;set oWB = oXL.Workbooks.Open(f_name)&lt;BR /&gt;set oSH = oWB.Worksheets.Item(1)&lt;BR /&gt;"a1:a1000")&lt;BR /&gt;Set c = .Find(strIndex, , , 2, 1, 2, 0)&lt;BR /&gt;If Not c Is Nothing Then&lt;BR /&gt;Do&lt;BR /&gt;Set c = .FindNext(c)&lt;BR /&gt;Loop While Not c Is Nothing And c.Address &amp;lt;&amp;gt; firstAddress&lt;BR /&gt;End If&lt;BR /&gt;End With&lt;BR /&gt;if VarHolder = 100 then&lt;BR /&gt;msgbox("It appears you have already submitted a questionnaire. To resubmit please delete old questionnaire?")&lt;BR /&gt;set oSH = Nothing&lt;BR /&gt;set oWB = nothing&lt;BR /&gt;set oXL = nothing&lt;BR /&gt;&lt;BR /&gt;'CLEAR SELECTIONS IF QUESTIONNAIRE ALREADY SUBMITTED&lt;BR /&gt;set v = ActiveDocument.Variables("vUserEmail")&lt;BR /&gt;"",true&lt;BR /&gt;set v = ActiveDocument.Variables("vUserPhone")&lt;BR /&gt;"",true&lt;BR /&gt;set v = ActiveDocument.Variables("Quest1Answer")&lt;BR /&gt;"",true&lt;BR /&gt;set v = ActiveDocument.Variables("Quest2Answer")&lt;BR /&gt;"",true&lt;BR /&gt;set v = ActiveDocument.Variables("Quest3Answer")&lt;BR /&gt;"",true&lt;BR /&gt;set v = ActiveDocument.Variables("vOtherFeedback")&lt;BR /&gt;"",true&lt;BR /&gt;exit sub&lt;BR /&gt;else&lt;BR /&gt;&lt;BR /&gt;'PASTE THE VALUES INTO EXCEL SHEET SPECIFIED&lt;BR /&gt;'username index&lt;BR /&gt;"A65536").End(-4162).Offset(1,0).FormulaR1C1 = strIndex&lt;BR /&gt;'date submitted&lt;BR /&gt;"A65536").End(-4162).Offset(0,1).FormulaR1C1 = VarHolder1&lt;BR /&gt;'user login&lt;BR /&gt;"A65536").End(-4162).Offset(0,2).FormulaR1C1 = VarHolder2&lt;BR /&gt;'optional user contact details&lt;BR /&gt;"A65536").End(-4162).Offset(0,3).FormulaR1C1 = VarHolder3&lt;BR /&gt;"A65536").End(-4162).Offset(0,4).FormulaR1C1 = VarHolder4&lt;BR /&gt;'question answers 1-3&lt;BR /&gt;"A65536").End(-4162).Offset(0,5).FormulaR1C1 = VarHolder5&lt;BR /&gt;"A65536").End(-4162).Offset(0,6).FormulaR1C1 = VarHolder6&lt;BR /&gt;"A65536").End(-4162).Offset(0,7).FormulaR1C1 = VarHolder7&lt;BR /&gt;'additional feedback&lt;BR /&gt;"A65536").End(-4162).Offset(0,8).FormulaR1C1 = VarHolder8&lt;BR /&gt;If f_name="False" then&lt;BR /&gt;Set oXL=nothing&lt;BR /&gt;Exit sub&lt;BR /&gt;End If&lt;BR /&gt;Set oSH=nothing&lt;BR /&gt;Set oWB=nothing&lt;BR /&gt;Set oXL=nothing&lt;BR /&gt;&lt;BR /&gt;'CLEAR SELECTIONS AFTER SUBMISSION&lt;BR /&gt;set v = ActiveDocument.Variables("vUserEmail")&lt;BR /&gt;"",true&lt;BR /&gt;set v = ActiveDocument.Variables("vUserPhone")&lt;BR /&gt;"",true&lt;BR /&gt;set v = ActiveDocument.Variables("Quest1Answer")&lt;BR /&gt;"",true&lt;BR /&gt;set v = ActiveDocument.Variables("Quest2Answer")&lt;BR /&gt;"",true&lt;BR /&gt;set v = ActiveDocument.Variables("Quest3Answer")&lt;BR /&gt;"",true&lt;BR /&gt;set v = ActiveDocument.Variables("vOtherFeedback")&lt;BR /&gt;"",true&lt;BR /&gt;msgbox("Thank you for completing the 'March 2011 - QlikView Questionnaire. Your answers will be reflected in the next report refresh.")&lt;BR /&gt;end if&lt;BR /&gt;End Sub&lt;BR /&gt;-------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 10:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Suppressing-macrosecurity-module-security-dialog/m-p/173664#M42760</guid>
      <dc:creator />
      <dc:date>2011-03-22T10:45:42Z</dc:date>
    </item>
    <item>
      <title>Suppressing macrosecurity module security dialog</title>
      <link>https://community.qlik.com/t5/QlikView/Suppressing-macrosecurity-module-security-dialog/m-p/173665#M42761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to attach the error pop up the user receives if they dont have the correct macro setup.&lt;/P&gt;&lt;P&gt;The error is 'Macro parse failed. Functionality was lost.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6177.macro-error.JPG"&gt;&lt;/A&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/4024.macro-error.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/4024.macro-error.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 15:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Suppressing-macrosecurity-module-security-dialog/m-p/173665#M42761</guid>
      <dc:creator />
      <dc:date>2011-03-22T15:00:09Z</dc:date>
    </item>
    <item>
      <title>Suppressing macrosecurity module security dialog</title>
      <link>https://community.qlik.com/t5/QlikView/Suppressing-macrosecurity-module-security-dialog/m-p/173666#M42762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In macro mudule (ctrl+m) you need to choose &lt;B&gt;System access&lt;/B&gt; under Requested macro security and &lt;B&gt;Allow system access&lt;/B&gt; under Current local security. And when asked when you open the document you need to choose allow any macro. And of course you need excel installed on that server (and opened at least once &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; to confirm all the messages)&lt;/P&gt;&lt;P&gt;Lukasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 13:20:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Suppressing-macrosecurity-module-security-dialog/m-p/173666#M42762</guid>
      <dc:creator />
      <dc:date>2011-04-12T13:20:07Z</dc:date>
    </item>
  </channel>
</rss>

