Poor Resolution of Exported Chart

AutoFilterQueen

Board Regular
Joined
Sep 28, 2011
Messages
90
I am using Excel VBA to copy some cells containing text (with formatting), copy them as a picture, paste the picture into a chart, export the chart as a .jpg file, and load the picture into a UserForm. This works beautifully when I use my home computer to remote desktop into my work computer (when using remote desktop, monitor resolution shows as 1280 x 800). It also works beautifully when a coworker runs the macro on her work computer with a 1920 x 1080 monitor. However, it looks terrible on my work computer with a 1280 x 1024 monitor. The copied image looks fine on all the screens. It is the exported .jpg file that looks very different depending on the monitor resolution. I can't export a .png file because it cannot be loaded into a UserForm.

I am using code similar to https://robp30.wordpress.com/2012/01/11/improving-the-quality-of-excel-image-export/

The one line that seems to be causing the problem is:

Code:
ActiveChart.Export Filename:=fName, filtername:="JPG"

I can paste all code for the entire macro if you think it would be helpful. Thanks in advance for your help!
 

Some videos you may like

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Watch MrExcel Video

Forum statistics

Threads
1,123,505
Messages
5,602,061
Members
414,498
Latest member
jordanmiller7890

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top