PRINT NON SEQUENTIAL PAGES

abagorro

New Member
Joined
Apr 1, 2002
Messages
1
How can I build a macro that prints page 1 and 5 of a selection? (the printing menu only has the option to print FROM page x TO page y...)
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi

To "build" this macro, do the following:

Start recording
Name your macro

Select the print area for page 1
Set the print area for page 1 on file menu
Print it

Select the print area for page 5
Set the print area for page 5 on file menu
Print it

Stop Recording

Have a nice day!
Tom
This message was edited by TsTom on 2002-04-02 02:44
 
Upvote 0
How About:


Code:
Sub PrintIt()
Dim strAdd As String
  strAdd = Selection.Address
       Sheets(1).Range(strAdd).PrintOut
       Sheets(5).Range(strAdd).PrintOut
End Sub


_________________
Kind Regards
Dave Hawley
OzGrid Business Applications
Microsoft Excel/VBA Training
OzGrid.BusApp.170x45.gif

This message was edited by Dave Hawley on 2002-04-02 03:47
 
Upvote 0

Forum statistics

Threads
1,215,212
Messages
6,123,655
Members
449,113
Latest member
Hochanz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top