View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Macro crashes if printer not installed

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?