<?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 Excel Zoom in Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excel-Zoom-in-Macro/m-p/174866#M43518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The correct property is ActiveWindow.Zoom, but it must be done on your Excel Object, not your Sheet. Here's a snippet of the code:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Set oXL=CreateObject("Excel.Application")&lt;BR /&gt;Set oWB=oXL.Workbooks.Open(f_name)&lt;BR /&gt;Set oSH=oWB.Worksheets.Item(1)&lt;BR /&gt;...&lt;BR /&gt;oXL.ActiveWindow.Zoom = 89&lt;BR /&gt;oWB.Save&lt;BR /&gt;oWB.Close&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Aug 2010 19:55:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-25T19:55:11Z</dc:date>
    <item>
      <title>Excel Zoom in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Zoom-in-Macro/m-p/174865#M43517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to All,&lt;/P&gt;&lt;P&gt;I export some QVs table to an excel sheet and then I format the sheet.&lt;/P&gt;&lt;P&gt;At the end I want to zoom the sheet to 89% and then save it.&lt;/P&gt;&lt;P&gt;I tried with :&lt;/P&gt;&lt;P&gt;set XLSheet = XLDoc.Worksheets(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XLSheet.PageSetup.Zoom = 89&lt;/P&gt;&lt;P&gt;XLSheet.ActiveWindow.Zoom = 89&lt;/P&gt;&lt;P&gt;But both doesn't works (the second prompt an error)&lt;/P&gt;&lt;P&gt;Any idea ?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Further to that I want to resize an image I export to the sheet trough CopyBitmapToClipboard but no way.&lt;/P&gt;&lt;P&gt;Any idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 19:11:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Zoom-in-Macro/m-p/174865#M43517</guid>
      <dc:creator />
      <dc:date>2010-08-25T19:11:24Z</dc:date>
    </item>
    <item>
      <title>Excel Zoom in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Zoom-in-Macro/m-p/174866#M43518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The correct property is ActiveWindow.Zoom, but it must be done on your Excel Object, not your Sheet. Here's a snippet of the code:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Set oXL=CreateObject("Excel.Application")&lt;BR /&gt;Set oWB=oXL.Workbooks.Open(f_name)&lt;BR /&gt;Set oSH=oWB.Worksheets.Item(1)&lt;BR /&gt;...&lt;BR /&gt;oXL.ActiveWindow.Zoom = 89&lt;BR /&gt;oWB.Save&lt;BR /&gt;oWB.Close&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 19:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Zoom-in-Macro/m-p/174866#M43518</guid>
      <dc:creator />
      <dc:date>2010-08-25T19:55:11Z</dc:date>
    </item>
    <item>
      <title>Excel Zoom in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Zoom-in-Macro/m-p/174867#M43519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great NMiller !&lt;/P&gt;&lt;P&gt;It works !&lt;/P&gt;&lt;P&gt;Have u an idea about how to resize an image in excel from Macro ?&lt;/P&gt;&lt;P&gt;I've copied it trough CopyBitmapToClipboard and pasted.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 20:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Zoom-in-Macro/m-p/174867#M43519</guid>
      <dc:creator />
      <dc:date>2010-08-25T20:08:41Z</dc:date>
    </item>
    <item>
      <title>Excel Zoom in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Zoom-in-Macro/m-p/174868#M43520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure how the picture would be identified in the Object Model after being pasted.&lt;/P&gt;&lt;P&gt;I pasted a picture into a blank document and then recorded a macro of resizing it to 50%. Here is what I got:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;oXL.ActiveSheet.Shapes("Object 1").Select&lt;BR /&gt;oXL.Selection.ShapeRange.LockAspectRatio = msoTrue&lt;BR /&gt;oXL.Selection.ShapeRange.Height = 260.25&lt;BR /&gt;oXL.Selection.ShapeRange.Width = 346.5&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I added the oXL to each line, because I think it should work that way. The tricky part may be figuring out the name of your pasted object. If there are no other objects, it may be Object 1. You may be able to say something like:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Let img = oXL.Paste '(I'm not sure what you used for that line of code)&lt;BR /&gt;' and then use&lt;BR /&gt;img.ShapeRange.LockAspectRatio = msoTrue&lt;BR /&gt;img.ShapeRange.Height = 260.25&lt;BR /&gt;img.ShapeRange.Width = 346.5&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I'm not sure if that works though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 20:28:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Zoom-in-Macro/m-p/174868#M43520</guid>
      <dc:creator />
      <dc:date>2010-08-25T20:28:42Z</dc:date>
    </item>
    <item>
      <title>Excel Zoom in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Zoom-in-Macro/m-p/174869#M43521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works.&lt;/P&gt;&lt;P&gt;For your information the name of the object is a counter.&lt;/P&gt;&lt;P&gt;So :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;' Select the last image copied&lt;/P&gt;&lt;P&gt;XLApp.ActiveSheet.Shapes(XLApp.ActiveSheet.Shapes.Count).Select&lt;/P&gt;&lt;P&gt;' Select the first image&lt;/P&gt;&lt;P&gt;XLApp.ActiveSheet.Shapes(1).Select&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 21:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Zoom-in-Macro/m-p/174869#M43521</guid>
      <dc:creator />
      <dc:date>2010-08-25T21:06:23Z</dc:date>
    </item>
  </channel>
</rss>

