+ Reply to Thread
Results 1 to 7 of 7

VBA to change the Zoom of a PDF

  1. #1
    Forum Contributor
    Join Date
    03-10-2014
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    180

    VBA to change the Zoom of a PDF

    Hi,

    I have come code that generates a pdf, however, it opens at quite a small zoom % i.e 73.2 and I need it to be around 125% so that people can see the detail on screen before they print.

    I have looked everywhere but cannot find any code to do this. Is it possible? I have read somewhere that VBA cannot control the zoom in a pdf but I'm shocked if that's the case.

    Thanks
    MissDB

  2. #2
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: VBA to change the Zoom of a PDF

    May Be

    Please Login or Register  to view this content.
    Regards
    Parth

    I appreciate your feedback. Hit * if u Like.
    Rules - http://www.excelforum.com/forum-rule...rum-rules.html

  3. #3
    Forum Contributor
    Join Date
    03-10-2014
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: VBA to change the Zoom of a PDF

    Hi,

    No that doesn't work, I get an "Object does not support this property" error and the resulting pdf is as before i.e. no bigger

    Thanks
    Miss DB

  4. #4
    Forum Contributor
    Join Date
    01-20-2012
    Location
    Amsterdam, The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    186

    Re: VBA to change the Zoom of a PDF

    Does the PDF Open in Abode?

  5. #5
    Forum Contributor
    Join Date
    03-10-2014
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: VBA to change the Zoom of a PDF

    Yes it does

  6. #6
    Forum Contributor
    Join Date
    01-20-2012
    Location
    Amsterdam, The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    186

    Re: VBA to change the Zoom of a PDF

    If you are using Adobe Reader the options are indeed quite limited, Adobe uses it's custom window, handles etc. to control the application.
    To accomodate this, the offer an API to interact with, however the (free) Reader function isn't opening up it's API.

    Nevertheless, all remaining Window API functions still remain and can be used. So it takes some time and effort, but it is possible.
    If you want to proceed I can recommend this URL http://www.myengineeringworld.net/20...-with-vba.html
    This approach (and some other things with PDF on the site) can make it happen.
    It might need a tweak somewhere, since Adobe tends to change their internal controls, handles and menustructure sometimes when switching version.

    Regards,
    Rick
    Last edited by rkey; 09-04-2015 at 07:44 AM. Reason: changed the link to an URL

  7. #7
    Forum Contributor
    Join Date
    03-10-2014
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: VBA to change the Zoom of a PDF

    Thanks Rick, interesting information and really detailed, thank you. I will review, but I think on the face of it I need to find an alternative solution/workaround as I don't have enough time to investigate at this point.

    Best wishes
    D

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. When changed zoom in one sheet, change it also in another one
    By drrazor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-19-2014, 04:59 AM
  2. [SOLVED] Change Workbook Open event Zoom via VBA
    By coreytroy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2012, 08:58 PM
  3. Change Zoom Level Based On Visible Columns Count
    By jaslake in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-02-2010, 11:19 PM
  4. Zoom in
    By Lloydjohnson85 in forum Excel General
    Replies: 3
    Last Post: 11-28-2008, 12:49 PM
  5. How do I keep text viewing correctly as I change zoom %
    By Directionalman in forum Excel General
    Replies: 1
    Last Post: 02-05-2006, 11:35 AM
  6. Change zoom to fit different resolutions
    By jweasl in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-18-2005, 02:05 PM
  7. Change Default Zoom
    By geek_girl in forum Excel General
    Replies: 1
    Last Post: 10-11-2005, 07:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1