<?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 Macro to update excel cell. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-update-excel-cell/m-p/1307880#M406936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a situation here. With a macro I am able to update the cell of a test spreadsheet (.xlsx).&lt;/P&gt;&lt;P&gt;But the same macro fails to update the original data sheet(.xlsm) I should need to update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am sorry that I can't share the original spreadsheet here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What might be the reasons that blocking the update.?? Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function a&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set objExcel = CreateObject("Excel.application")&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcel.DisplayAlerts = False&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set objWB = objExcel.Workbooks.Open("path\spreadhsheet.xlsx")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; With objWB.Worksheets(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Activate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Cells(1,1).Value = "12/25/2016"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End With&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objWB.save&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objWB.close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set objSheet = Nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set objWB = Nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set objExcel = Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Mar 2017 07:51:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-03-30T07:51:46Z</dc:date>
    <item>
      <title>Macro to update excel cell.</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-update-excel-cell/m-p/1307880#M406936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a situation here. With a macro I am able to update the cell of a test spreadsheet (.xlsx).&lt;/P&gt;&lt;P&gt;But the same macro fails to update the original data sheet(.xlsm) I should need to update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am sorry that I can't share the original spreadsheet here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What might be the reasons that blocking the update.?? Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function a&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set objExcel = CreateObject("Excel.application")&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcel.DisplayAlerts = False&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set objWB = objExcel.Workbooks.Open("path\spreadhsheet.xlsx")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; With objWB.Worksheets(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Activate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Cells(1,1).Value = "12/25/2016"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End With&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objWB.save&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objWB.close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set objSheet = Nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set objWB = Nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set objExcel = Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 07:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-update-excel-cell/m-p/1307880#M406936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-30T07:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to update excel cell.</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-update-excel-cell/m-p/1307881#M406937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think it has something to do with folder privileges? Do you have read/write access to the folder in which the original xlsm is present?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 08:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-update-excel-cell/m-p/1307881#M406937</guid>
      <dc:creator>karthiksrqv</dc:creator>
      <dc:date>2017-03-30T08:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to update excel cell.</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-update-excel-cell/m-p/1307882#M406938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Karthik, Actually both test and&amp;nbsp; original files are present in same folder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 08:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-update-excel-cell/m-p/1307882#M406938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-30T08:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to update excel cell.</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-update-excel-cell/m-p/1307883#M406939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. A couple of things you could verify:&lt;/P&gt;&lt;P&gt;1. Is the xlsm password-protected?&lt;/P&gt;&lt;P&gt;2. You could try to see if you at all able to update a xlsm file (a second file that is of the xlsm type)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 09:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-update-excel-cell/m-p/1307883#M406939</guid>
      <dc:creator>karthiksrqv</dc:creator>
      <dc:date>2017-03-30T09:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to update excel cell.</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-update-excel-cell/m-p/1307884#M406940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Karthik for your time and advice. Finally got the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here am using &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;STRONG&gt; With objWB.Worksheets(1).&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Maybe in the original spreadsheet, the order of the sheets is changed and the sheet am trying is not sheet1 may be.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;When I tried giving the name&amp;nbsp; &lt;STRONG&gt;With objWB.Worksheets("******").&lt;/STRONG&gt; It worked fine.&lt;STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 09:57:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-update-excel-cell/m-p/1307884#M406940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-30T09:57:36Z</dc:date>
    </item>
  </channel>
</rss>

