Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to create a macro to print. It prints but I get run time
error 424 object required. WHat is wrong and how can I fix it? How can I tell it ot print 3 copies of the active sheet? Here's my code: Sub prtout() ActiveSheet.PrintOut.ActivePrinter End Sub |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use:
ActiveWindow.SelectedSheets.PrintOut Copies:=3 or ActiveSheet.PrintOut Copies:=3 Bob Flanagan Macro Systems http://www.add-ins.com Productivity add-ins and downloadable books on VB macros for Excel "David" wrote in message om... I am trying to create a macro to print. It prints but I get run time error 424 object required. WHat is wrong and how can I fix it? How can I tell it ot print 3 copies of the active sheet? Here's my code: Sub prtout() ActiveSheet.PrintOut.ActivePrinter End Sub |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That worked perfectly. Thank you very much. Could you direct me to
some resources for newbies who want to figure out VB code for themselves? Much appreciated. "Bob Flanagan" wrote in message ... Use: ActiveWindow.SelectedSheets.PrintOut Copies:=3 or ActiveSheet.PrintOut Copies:=3 Bob Flanagan Macro Systems http://www.add-ins.com Productivity add-ins and downloadable books on VB macros for Excel "David" wrote in message om... I am trying to create a macro to print. It prints but I get run time error 424 object required. WHat is wrong and how can I fix it? How can I tell it ot print 3 copies of the active sheet? Here's my code: Sub prtout() ActiveSheet.PrintOut.ActivePrinter End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable | Excel Worksheet Functions | |||
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable | Excel Discussion (Misc queries) | |||
printing error | Excel Discussion (Misc queries) | |||
Excel 2003 Macro Error - Runtime error 1004 | Excel Discussion (Misc queries) | |||
printing error | Setting up and Configuration of Excel |