Targa 911 Carrera
New Member
- Joined
- Jun 7, 2019
- Messages
- 1
I have a Time Clock Excel spreadsheet that I wrote so employees can click an icon button to record their times as they clock in and out by via an Excel macro. At the end of the pay period the store manage needs to print the payroll sheet and he is not computer savvy at all, therefore I wrote a simple macro that selects the cells I want him to print, sets the printer to print in Landscape Orientation, select the correct printer, etc. again by clicking an icon button to run the PrintTimeSheetMacro. The problem I’m have is the IT department in the home office in another state keeps changing the network settings defaults on the only printer connected to the computer I can access. The code lines that I’ve created are:
Application.ActivePrinter = "\\CT4850\CashOffice on Ne02:"
Selection.PrintOut Copies:=1, ActivePrinter:="\\CT3511\CashOffice on Ne02:" _
, Collate:=True
The IT department keeps changing the “Ne02:” back and forth to “Ne07:” every few weeks and they change the default printer to "Scanner" not "CashOffice". So far I’ve been changing the 2 to a 7 or vice versa when the macro errors out and goes in to Debug mode. I can’t contact the IT department and request that they stop changing these setting, because I think they might not be happy with me writing Excel Macros on the company’s computers, but these macros make life a lot simpler at the store level.
I would like to know how I can pause the macro and have a dialog box display instructing the user to select the right printer.
Application.ActivePrinter = "\\CT4850\CashOffice on Ne02:"
Selection.PrintOut Copies:=1, ActivePrinter:="\\CT3511\CashOffice on Ne02:" _
, Collate:=True
The IT department keeps changing the “Ne02:” back and forth to “Ne07:” every few weeks and they change the default printer to "Scanner" not "CashOffice". So far I’ve been changing the 2 to a 7 or vice versa when the macro errors out and goes in to Debug mode. I can’t contact the IT department and request that they stop changing these setting, because I think they might not be happy with me writing Excel Macros on the company’s computers, but these macros make life a lot simpler at the store level.
I would like to know how I can pause the macro and have a dialog box display instructing the user to select the right printer.