Save a word doc as .jpg from Excel macro?

espenskeie

Well-known Member
Joined
Mar 30, 2009
Messages
636
Office Version
  1. 2016
Platform
  1. Windows
Hi

Is it possible to save a word docx as .jpg file from Excel?

Or .pdf?

Regards
Espen
 
Sorry, what is 17, is there a counter function that I should turn on in Developer?
 
Upvote 0

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
It's the (numeric) constant and equivalent for wdExportFormatPDF.
 
Upvote 0
Wow.....

I replaced the wdExportFormatPDF with the number 17 and it works!!

Really funny! This was weird.

Thank you very much for your help!!!!!
 
Upvote 0
Wow.....

I replaced the wdExportFormatPDF with the number 17 and it works!!

Really funny! This was weird.

Do you think so? You should choose to use early-binding in your code if you want to make use of wdExportFormatPDF, for instance.
 
Upvote 0
Thanks for the advice, I am pretty newbee to this stuff so I appreciate it very much.

Do you happen to know how to add this .pdf file into a powerpoint slide? I have to make that work somehow, I have a code that adds .jpg files, but I need it to add this .pdf file to the slides before these.

I will add a new post for this problem.

Anyway, thank you for solving the .docx to .pdf problem. :-)
 
Upvote 0

Forum statistics

Threads
1,222,532
Messages
6,166,603
Members
452,054
Latest member
ibale

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