Creating numerous PDFs

cogswel__cogs

Board Regular
Joined
Jan 3, 2018
Messages
181
I created a dashboard for my company and they like it.
I added a print and Pdf buttons allowing you to print out or PDF a view.

They asked if there was a way to Create a file with all views in PDF. So I said I don't know I will have to check my magic 8ball.
So I am posting here which basically is my magic 8ball.
Is there a way with VBA to create PDF after PDF saving as the same PDF file.
 
Last edited:

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
saving as the same will overwrite won't it
 
Upvote 0
Have you tried recording a print to PDF
2007
ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,2,,,TRUE,,FALSE)"
Sheets("OPs Licences as of 01-Feb-2018").Select
2016
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:\Users\mauri\Desktop\AfC 2 test bed.pdf", Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:= _
True
Gone are the days of having to have adobe installed
 
Upvote 0
I think the code I manipulated is similar.
However I want to run numerous instances and save them page after page.
I would be just as happy wit JPGs as I could design something in excel to run them page after page with VBA code.
However the dashboard has numerous slicers. When I print out the slicers are replaced by text, as text better displays what has been chosen or not chosen.
When I designed I just told the Pivottables to not be included when printing and have it replaced by text.
So if I go to copy the dashboard as a picture the slicers remain. So it is much easier to work with printout but I only am aware as printing as pdf or to a printer.
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,194
Members
453,021
Latest member
pingpong7117

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