Hello everyone,
For one of my publications, I need to export a graph that is exactly 34.2 cm wide x 22.5 cm tall. It is a graph in a spreadsheet tab (not a chartsheet!) in a workbook with 50+ similar graphs to be used for the same publication. No matter what I do, when I export the graph as a jpg, it always has the wrong dimensions. It's not an option to use other software or recreate the workbook. We must use this file.
I've tried adjusting the dimensions of the chart area manually in Excel:
Capture1.GIF
I've tried adjusting the dimensions with VBA:
Please Login or Register to view this content.
I've even tried exporting this with add-on software, such as KUTOOLS and XL TOOLBOX NG. Doesn't work.
No matter what I do, the jpg always has the wrong dimensions:
Capture2.GIF
1036 pixels = 27.4 cm
683 pixels = 18.1 cm
I've scoured the internet for help, but nothing is working. A simplified version of this spreadsheet can be downloaded from my Google Drive:
https://drive.google.com/file/d/1d2b...ew?usp=sharing
Does anyone have any ideas on how I can fix this? Thanks so much for your help.
P.S.
Here is the code I'm using to export the images as .jpg files:
Please Login or Register to view this content.
Bookmarks