Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default How do I use check boxes to determine which worksheets to prin

Also is there a code to untick all boxes if they have already been ticked?

"Nikki" wrote:

Is there a code to use that allows all check boxes to be ticked or all tabs
to be printed? I have a worksheet with 18 tabs in it and do not want to have
to tick 18 boxes each time I want all 18 to be printed.

Thanks

"Jim Thomlinson" wrote:

I am not 100% sure what you mean... Your code should look something like
this...

Private Sub CommandButton1_Click()
If CheckBox1 = True Then
Sheets("Sheet1").PrintOut
End If
If CheckBox2 = True Then
Sheets("Sheet2").PrintOut
End If
End Sub

When you click on the button it check the value of the checkboxes and if
they are checked it prints out the appropriate sheet...

HTH

"Slugger" wrote:

Thanks Jim. How would I end the code?

"Jim Thomlinson" wrote:

Add two check boxes and a command button to the sheet from the control
toolbox. Double click the command button ad add the following code:

If CheckBox1 = True Then
Sheets("Sheet1").PrintOut
End If
If CheckBox2 = True Then
Sheets("Sheet2").PrintOut
End If

This is a strat for you anyway...

"Slugger" wrote:

Let's get into it! Thanks Jim. If I'm going to do it, I should do it right.

"Jim Thomlinson" wrote:

Nope... To do this you need to use VBA. There is no way to just record a
macro either. This is custom stuff. It is not really intricate stuff, but it
is custom built, so if you want to proceed let us know and we can give you a
hand...

HTH

"Slugger" wrote:

I have a workbook with 4 worksheets, each containing a separate report that I
have formatted to print. I would like to create a 5th worksheet to use a
print control form. It would haveh check boxes to select the tabs and one
button that would print the selected tabs. Is there a way to do this without
getting to deep into VB? Thanks!

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
Copy and move check box (check boxes) with new cell link? Marty Excel Worksheet Functions 1 January 20th 10 07:43 PM
Print = moving check boxes [email protected] Excel Discussion (Misc queries) 3 August 17th 07 02:07 AM
Allow user to change the state of ("click" in) check-boxes on protected worksheets? Chuck Zissman Excel Worksheet Functions 2 May 12th 07 08:10 PM
Enable check box in protected sheet + group check boxes Dexxterr Excel Discussion (Misc queries) 4 August 2nd 06 12:00 PM
Check boxes I have inserted in Excel move when I print? Mechelle C Excel Discussion (Misc queries) 1 June 22nd 06 06:44 PM


All times are GMT +1. The time now is 03:40 PM.

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

About Us

"It's about Microsoft Excel"