Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
tom tom is offline
external usenet poster
 
Posts: 570
Default Check Box Status

I have about 10 Check Boxes on a sheet that I built using the Control
Toolbar. When I check the box on and off, I don't want to have a macro do
anything at that time.

Instead, I want to write a separate macro, that when I click the button will
go and check the status of each of the checkboxes and then do something (such
as print a sheet).

In other words, this overall macro would run a "batch" and perform a print
function based upon the state of each CheckBox.

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Check Box Status


Good evening

Put a piece of code like this in the buttons event procedu

Sub MyActions()
If Checkbox1=True Then
' Put your action in here
End If
End Sub

As long as this goes in the buttons event procedure control, the
checkbox (in this case 1) will not be read until you click the button.

HTH

DominicB


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=346107

  #3   Report Post  
Posted to microsoft.public.excel.programming
tom tom is offline
external usenet poster
 
Posts: 570
Default Check Box Status

Thanks, but I was really looking for the opposite.

I don't need to do anything in the events procedure necessarily when the
check box is activated.

I am looking for a way in an external macro (driven from a button) to look
at the status of each check box and then do something based upon the
"condition" of the check box at the time that the external macro is executed.

Any ideas?

Thanks for the help.

"dominicb" wrote:


Good evening

Put a piece of code like this in the buttons event procedu

Sub MyActions()
If Checkbox1=True Then
' Put your action in here
End If
End Sub

As long as this goes in the buttons event procedure control, the
checkbox (in this case 1) will not be read until you click the button.

HTH

DominicB


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=346107


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
I want to return a value based on the status of a check box. If . JROD Excel Worksheet Functions 1 April 4th 05 08:18 PM
Syntax to check protected status of a worksheet? [email protected] Excel Discussion (Misc queries) 2 January 18th 05 02:53 PM
Check file open status kaon[_18_] Excel Programming 4 July 19th 04 05:16 AM
Check status row (hidden or visible)? Martin Los Excel Programming 1 December 18th 03 03:32 PM
Check calculation status Jeff Excel Programming 2 November 25th 03 04:23 PM


All times are GMT +1. The time now is 12:13 AM.

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

About Us

"It's about Microsoft Excel"