![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 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...)
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
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 ] |
|
|
|
|
|
#3 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
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 ![]() [ This Message was edited by: Dave Hawley on 2002-04-02 03:47 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|