Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default checkbox with two macros

Hello

I have a doubt

How set two conditional macros on a checkbox? For example if the checkbox A
is clicked will be executed the Macro A if not then will be executed the
Macro B.

How can set this?

Best Regards

Jose Carlos
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default checkbox with two macros

Hi Jose,

Try something like:

'=============
Private Sub CheckBox1_Click()
If Me.CheckBox1.Value = True Then
Call macroA
Else
Call macroB
End If
End Sub
'<<=============

---
Regards,
Norman



"Jose Carlos" <Jose wrote in message
...
Hello

I have a doubt

How set two conditional macros on a checkbox? For example if the checkbox
A
is clicked will be executed the Macro A if not then will be executed the
Macro B.

How can set this?

Best Regards

Jose Carlos



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
Checkbox macros LN[_2_] Excel Discussion (Misc queries) 2 January 6th 09 06:13 AM
checkbox that controls macros??? childofthe1980s Setting up and Configuration of Excel 0 March 6th 07 12:40 PM
checkbox and macros Tdebb8594 Excel Worksheet Functions 1 January 14th 05 10:00 PM
A Print Button macro that is based on Checkbox macros Mstr G Excel Programming 3 November 16th 04 11:55 PM
Checkbox Macros Joe Strommen Excel Programming 1 December 31st 03 09:32 PM


All times are GMT +1. The time now is 05:53 PM.

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"