Sjun
New Member
- Joined
- Feb 17, 2010
- Messages
- 3
Hi there,
I just registered on this forum, hoping someone can help me at the following issue;
I would like to have the ability to set a printername/number in cell A1, and use this cell as the name for the printer to where my printjobs get sent.
This way, I can set the printername, and use a button which activates a macro to print to a specific printer.
So far, I have this code, executed on buttonpress:
What I would like to have (but working) is:
I just registered on this forum, hoping someone can help me at the following issue;
I would like to have the ability to set a printername/number in cell A1, and use this cell as the name for the printer to where my printjobs get sent.
This way, I can set the printername, and use a button which activates a macro to print to a specific printer.
So far, I have this code, executed on buttonpress:
Code:
ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
"\\printserver\printer1 on Ne13:", Collate:=True
What I would like to have (but working) is:
Code:
ActivePrinter:= "\\printserver\" & Worksheets("Sheet1").A1
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True