zombiemaster
Board Regular
- Joined
- Oct 27, 2009
- Messages
- 245
Hoping for some easy help. I have a button on a worksheet that when you click it, it takes the data on whatever row you're cursor is on and fills in a "work item" and prints it to PDF that you decide where to save it to on your workstation.
Currently, the PDF is un-named until you name it in the PDF print dialog. I've been asked if it can be pre-filled with the name that is in cell B7. I know it's possible but online searches weren't much help. Here's what I've got right now - can someone help fill in the blanks of how to do this?
Thanks in advance!
~ZM~
Currently, the PDF is un-named until you name it in the PDF print dialog. I've been asked if it can be pre-filled with the name that is in cell B7. I know it's possible but online searches weren't much help. Here's what I've got right now - can someone help fill in the blanks of how to do this?
VBA Code:
With Sheets("WORK ITEM TEMPLATE")
.Visible = True
.Calculate
.PrintOut Copies:=1, Collate:=True
.Visible = False
End With
Thanks in advance!
~ZM~