Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Print macros don't work on all printers
I use macros to print some portions of my worksheets. Included in the macro
is print setup commands. When I try to print on some different printes, the macro doesn't work. It seems to have something in the setup being different on other printers. How can I change macro to work on all printers? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Print macros don't work on all printers
Try keeping only the code that you need in your macro.
If you're not changing a setting, then don't include it in your code. If you used the macro recorder to generate your code, you may have lots of extra lines in that procedure. dford wrote: I use macros to print some portions of my worksheets. Included in the macro is print setup commands. When I try to print on some different printes, the macro doesn't work. It seems to have something in the setup being different on other printers. How can I change macro to work on all printers? -- Dave Peterson |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Print macros don't work on all printers
I am using the macro recorder. Is there a way to tell which code I don't need?
"Dave Peterson" wrote: Try keeping only the code that you need in your macro. If you're not changing a setting, then don't include it in your code. If you used the macro recorder to generate your code, you may have lots of extra lines in that procedure. dford wrote: I use macros to print some portions of my worksheets. Included in the macro is print setup commands. When I try to print on some different printes, the macro doesn't work. It seems to have something in the setup being different on other printers. How can I change macro to work on all printers? -- Dave Peterson |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Print macros don't work on all printers
Two ways -
Visually examine the macro recorded and just delete entries that are obviously not things you were planning on setting up anyhow. The second way is to run the macro and when it errors out, click the [Debug] button offered. The offending feature will be highlighted in the code. Delete that line of the code, press [F5] to continue running the code. Repeat until code works for you. "dford" wrote: I am using the macro recorder. Is there a way to tell which code I don't need? "Dave Peterson" wrote: Try keeping only the code that you need in your macro. If you're not changing a setting, then don't include it in your code. If you used the macro recorder to generate your code, you may have lots of extra lines in that procedure. dford wrote: I use macros to print some portions of my worksheets. Included in the macro is print setup commands. When I try to print on some different printes, the macro doesn't work. It seems to have something in the setup being different on other printers. How can I change macro to work on all printers? -- Dave Peterson |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Print macros don't work on all printers
That should work for me. Thanks for the help.
"JLatham" wrote: Two ways - Visually examine the macro recorded and just delete entries that are obviously not things you were planning on setting up anyhow. The second way is to run the macro and when it errors out, click the [Debug] button offered. The offending feature will be highlighted in the code. Delete that line of the code, press [F5] to continue running the code. Repeat until code works for you. "dford" wrote: I am using the macro recorder. Is there a way to tell which code I don't need? "Dave Peterson" wrote: Try keeping only the code that you need in your macro. If you're not changing a setting, then don't include it in your code. If you used the macro recorder to generate your code, you may have lots of extra lines in that procedure. dford wrote: I use macros to print some portions of my worksheets. Included in the macro is print setup commands. When I try to print on some different printes, the macro doesn't work. It seems to have something in the setup being different on other printers. How can I change macro to work on all printers? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Printing: how do I amend my print defaults? | Excel Discussion (Misc queries) | |||
2 printers 1 does not print name in same spot | Excel Discussion (Misc queries) | |||
Getting embeded Excel worksheets with macros in Word to work | Excel Discussion (Misc queries) | |||
How do I update Excel 2000 macros to work in Excel 2002? | Excel Discussion (Misc queries) | |||
can a workbook with macros created in excel 2003 work in excel 20. | Excel Discussion (Misc queries) |