Hi!
I've seen lots of threads about how you can save a workbook to a location noted in a specific cell. However, I'm trying to accomplish this when that cell is in another open workbook.
My macro copies a sheet called "AP35" to it's own workbook, and the save as dialog box pops up. As convenient as that is, it would be amazing if I could just get it to reference a cell in the original workbook.
I cannot have the file location in the "AP35" sheet as those are aggregated, and anything additional would cause that to bomb.
Now that I'm done rambling: how could I tell the new book that the "AP35" sheet is moved to to print from:
Cell: B39
Workbook: Manual AP35 Template
Worksheet: Cover
As that macro is running, that workbook will be open and the user is not able to close it. Tried doing some recording to get this, but I wasn't sure how to piece things together.
Secondly, I have a print to pdf in the macro as well which brings up the "save as" dialog, but is there anyway to get that to automatically save to the value in B38? This one is in the same worksheet so not as complicated at all. It's literally this simple code right now:
I'm sure it's easy to just add where to save in there but I'm not figuring it out.
Thanks so much!!
I've seen lots of threads about how you can save a workbook to a location noted in a specific cell. However, I'm trying to accomplish this when that cell is in another open workbook.
My macro copies a sheet called "AP35" to it's own workbook, and the save as dialog box pops up. As convenient as that is, it would be amazing if I could just get it to reference a cell in the original workbook.
I cannot have the file location in the "AP35" sheet as those are aggregated, and anything additional would cause that to bomb.
Now that I'm done rambling: how could I tell the new book that the "AP35" sheet is moved to to print from:
Cell: B39
Workbook: Manual AP35 Template
Worksheet: Cover
As that macro is running, that workbook will be open and the user is not able to close it. Tried doing some recording to get this, but I wasn't sure how to piece things together.
Secondly, I have a print to pdf in the macro as well which brings up the "save as" dialog, but is there anyway to get that to automatically save to the value in B38? This one is in the same worksheet so not as complicated at all. It's literally this simple code right now:
Code:
Sub printtopdf()
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
IgnorePrintAreas:=False
Call CreateAP35M2M
End Sub
I'm sure it's easy to just add where to save in there but I'm not figuring it out.
Thanks so much!!