Exporting Pivot Table/Large Range as picture leads to very blurry image

codeliftsleep

Board Regular
Joined
Apr 14, 2017
Messages
103
Hello all,

I have been trying to automate sending emails with HTML in the body with embedded pictures/ranges. I have been able to get it to work using Ron de Bruin's RangeToHTML or with Images embedded but not both.

I thought I had a simple solution, just copy the ranges to a chart and export as an image, and it has worked very well except for one very large pivot table. This table has about 450-500 rows and needs to be included in the body of an email along with several other ranges and about 9 images.

So I have everything else working in HTML via creating an image, saving it as an hidden attachment and then referencing it in HTML like this:

HTML:
.HTMLBody = "<img src='cid:MyPicName.png'/>"
and just adding <br>'s and the next image.

Everything works great, looks good, except for this pivot table/range. The picture turns out completely blurry and unreadable. I need to come up with some type of solution for this, but I'm not sure what I can do. I can use the Send Keys method I suppose to copy and paste it into the Email as a last resort, but that wouldn't be ideal.

Does anyone know a method to get it to save like it should as a picture without being unreadable?
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,223,268
Messages
6,171,099
Members
452,379
Latest member
IainTru

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
Back
Top