Save all Sheets to the right of active sheet as PDF

thedoccontroller

Board Regular
Joined
Dec 15, 2015
Messages
82
Okay so here goes...

Sheet1 ("Instructions") has the root file folder path in cell A52. Cell H10 (actually a range H10:J11 merged) has a string that is part of the name of a subfolder in that root. So I need to search the root (A52) for the folder containing the string (H10) and then save all sheets to the right of (excluding) the "Instructions" sheet, as a PDF. Ive dug quite a bit and can't piece it together. Thanks in advance.
Screenshot 2021-09-28 140033.png
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Insert these lines in the code:
VBA Code:
    Dim XLSMfile As String

                XLSMfile = saveInFolder & "PE Insp.xlsm"

                .SaveCopyAs XLSMfile
Beautiful! Took me a minute to figure out what section I was replacing and how much, but I got it on the first try. Thank you soooo much.
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,298
Members
449,077
Latest member
Rkmenon

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