Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Check Box to call Macro

Could someone help me understand why if I click my check box it doesn't call
or run my macro... here is the code.

Private Sub CheckBox1_Click()
If CheckBox = True Then
Application.Run "Bond Price Calculator.xlt!GovtClick"
'or call GovtClick
Else: End
End If
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Check Box to call Macro

John,

In your code, change "CheckBox" to "CheckBox1":

CheckBox1 = True Then

hth,

Doug

"John" wrote in message
...
Could someone help me understand why if I click my check box it doesn't

call
or run my macro... here is the code.

Private Sub CheckBox1_Click()
If CheckBox = True Then
Application.Run "Bond Price Calculator.xlt!GovtClick"
'or call GovtClick
Else: End
End If
End Sub



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Check Box to call Macro

Thats a little embarrising... THANKS!

"Doug Glancy" wrote:

John,

In your code, change "CheckBox" to "CheckBox1":

CheckBox1 = True Then

hth,

Doug

"John" wrote in message
...
Could someone help me understand why if I click my check box it doesn't

call
or run my macro... here is the code.

Private Sub CheckBox1_Click()
If CheckBox = True Then
Application.Run "Bond Price Calculator.xlt!GovtClick"
'or call GovtClick
Else: End
End If
End Sub




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
How can run a macro ( call a macro) on selection of any filtercriteria? [email protected] Excel Worksheet Functions 7 February 20th 09 12:34 AM
Call an Access macro from an Excel macro Jason W Excel Discussion (Misc queries) 1 May 1st 08 08:33 PM
Excel Macro call Word Macro with Parameters Bill Sturdevant[_2_] Excel Programming 9 May 24th 07 12:21 AM
How do I get an OLEObjects check box to call a function when click Jenny_MIT_2101 Excel Programming 2 October 29th 04 02:27 PM
API call to check other program is idle Keith Willshaw Excel Programming 0 August 15th 03 01:41 PM


All times are GMT +1. The time now is 01:19 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"