Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there,
I have a macro that prints a form but errors if no printer is attached. What would the vba code be for detecting a printer and ending the sub if one is not conected many thanks. kevin. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this
Untested but try this If Application.ActivePrinter = "" Then Exit Sub -- Regards Ron de Bruin http://www.rondebruin.nl "kevin" wrote in message ... Hi there, I have a macro that prints a form but errors if no printer is attached. What would the vba code be for detecting a printer and ending the sub if one is not conected many thanks. kevin. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Print Range not connected | Excel Worksheet Functions | |||
Connected from Excel to Access | Excel Discussion (Misc queries) | |||
members on my network printer not able to print to default printer | Excel Discussion (Misc queries) | |||
hangs when connected | Excel Discussion (Misc queries) | |||
Printer Multiple Worksheets with a particular Printer Setting | Excel Worksheet Functions |