Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing: how do I amend my print defaults? joo Excel Discussion (Misc queries) 7 September 21st 06 02:00 PM
2 printers 1 does not print name in same spot Cuppa T Excel Discussion (Misc queries) 0 July 22nd 06 03:51 AM
Getting embeded Excel worksheets with macros in Word to work [email protected] Excel Discussion (Misc queries) 3 June 20th 06 01:56 PM
How do I update Excel 2000 macros to work in Excel 2002? BobPetrich Excel Discussion (Misc queries) 3 January 4th 05 04:06 PM
can a workbook with macros created in excel 2003 work in excel 20. Steve Venti Excel Discussion (Misc queries) 2 December 27th 04 02:31 PM


All times are GMT +1. The time now is 10:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"