+ Reply to Thread
Results 1 to 2 of 2

Copy and export picture VBA - pixels issue

  1. #1
    Registered User
    Join Date
    12-12-2009
    Location
    Italy
    MS-Off Ver
    Excel 2003
    Posts
    15

    Question Copy and export picture VBA - pixels issue

    Hi,

    I'm actually using chart.export command to get some .gif files.
    The problem is the resolution, this is my case:

    Chart width = 480 points
    Screen Dpi = 96
    Chart width should in pixels = 640 (480 x 96/72)

    The problem is that the output file is 643 width. If I test the same file in another PC, the output file is 643 width.

    Does any one know how to solve this??

    Many thanks!

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Copy and export picture VBA - pixels issue

    Hi sivanvega

    Only guessing but perhaps it relates to screen resolution of the machine you're running on. There's many examples of code to find screen resolution on the Net. Having determined screen resolution, perhaps changing the Zoom level (using Case Select) may help.

    John
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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