Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I want to print an array of sheets that are selected by check boxes so the pages print in order. Here is my code, but I get an error in the array, can someone help with this? Thanks!! Private Sub Cmd_Print_Click() Dim A As String Dim B As String Dim C As String If CheckBox1.Value = True Then A = "Sheet1" End If If CheckBox2.Value = True Then B = "Sheet2" End If If CheckBox3.Value = True Then C = "Sheet3" End If F = A & B & C Sheets(Array(F)).Select ActiveWindow.SelectedSheets.PrintOut End Sub -- LaraBee ------------------------------------------------------------------------ LaraBee's Profile: http://www.excelforum.com/member.php...o&userid=30275 View this thread: http://www.excelforum.com/showthread...hreadid=499436 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pivot Table macro to set print area and print details of drill down data | Excel Discussion (Misc queries) | |||
Macro to open print window and set to print entire workbook | Excel Discussion (Misc queries) | |||
Create a print macro that would automatically select print area? | Excel Worksheet Functions | |||
Why does macro speed slow after Excel Print or Print Preview? | Excel Programming | |||
Need Help w/ Print Macro to Print All Visible Sheets (including Charts) in a Workbook | Excel Programming |