Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for this.
What I am after is a way to select the range of worksheets you want to print therefore not always set to print all worksheets. So far I have got this far by setting up a userform with a combobox and command button that allows me to select a single worksheet (though the code doesn't actually work as the command button doesn't bring up the print menu!). What I would like is 2 seperate combo boxes 1) print worksheet FROM and 2) print worksheet TO, thereby specifying a range that can be chjanged each time. Private Sub CommandButton1_Click() ThisWorkbook.Sheets(Me.ComboBox1.Text).PrintOut Copies:=1, Collate:=True End Sub Private Sub UserForm_Initialize() Dim ws As Worksheet For Each ws In ThisWorkbook.Sheets Me.ComboBox1.AddItem ws.Name Next End Sub any pointers, as always greatly appreciated |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to print multiple work sheets using vba | Excel Discussion (Misc queries) | |||
Print page 1 of all work sheets?? | Excel Discussion (Misc queries) | |||
HOW TO: One name range to work for multiple sheets | Excel Programming | |||
HOW TO: One name range to work for multiple sheets | Excel Programming | |||
Need Help w/ Print Macro to Print All Visible Sheets (including Charts) in a Workbook | Excel Programming |