Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using the following code to add a footer to a page:
ActiveSheet.PageSetup.RightFooter = "&8&F" & Chr(10) & "&A" & Chr(10) & "&D" The problem is that the macro crashes on a computer that does not have a printer installed. Can anyone please suggest a way to handle this? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can assign/configure a print driver even though you don't actually
connect a printer to the computer. You then select that in your print setup. -- Regards, Tom Ogilvy "Phil" wrote in message oups.com... I am using the following code to add a footer to a page: ActiveSheet.PageSetup.RightFooter = "&8&F" & Chr(10) & "&A" & Chr(10) & "&D" The problem is that the macro crashes on a computer that does not have a printer installed. Can anyone please suggest a way to handle this? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I don't have a machine without a printer driver, so I can't test it, but you
could try wrapping it with error handling On Error Goto no_printer ... no_printer: Msgbox "No printer installed" -- HTH Bob Phillips "Phil" wrote in message oups.com... I am using the following code to add a footer to a page: ActiveSheet.PageSetup.RightFooter = "&8&F" & Chr(10) & "&A" & Chr(10) & "&D" The problem is that the macro crashes on a computer that does not have a printer installed. Can anyone please suggest a way to handle this? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Change in Column Width depending on whether printer is installed / | Excel Discussion (Misc queries) | |||
Getting "printer not installed" when trying to edit page setup | Excel Worksheet Functions | |||
Changing Excel Object's page setup wthout having a printer installed | Excel Programming | |||
Excel crashes when .Net framework installed | Excel Programming | |||
macro crashes excell xp | Excel Programming |