Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Using a Macro to Change the Value of a Check Box or Combo Box

Hello There,

I am creating an input screen with different controls such as Combo Boxes,
Check Boxes, etc... I have a Reset Values button which when selected will
make the values of all check boxes false. When the Reset Values button is
selected is runs a macro to do this. My program crashes every time I execute
this macro. It seems like a simple enough thing to do.

I have tried many different ways to make the cell value false. These are
some of the examples I have used:

Range("D7").Select
ActiveCell.Value = False

Range("D7").Select
ActiveCell.FormulaR1C1 = "FALSE"

Range("D7").Value = False

If any one can give me some help on this it would be greatly appreciated.

Thanks,
Irfan

  #2   Report Post  
Posted to microsoft.public.excel.programming
JNW JNW is offline
external usenet poster
 
Posts: 480
Default Using a Macro to Change the Value of a Check Box or Combo Box

Why not set the check box to false?

Userform1.Checkbox1.value = false

If that doesn't work, you'll need to post more of your code for us to help
you out.

"Irfan" wrote:

Hello There,

I am creating an input screen with different controls such as Combo Boxes,
Check Boxes, etc... I have a Reset Values button which when selected will
make the values of all check boxes false. When the Reset Values button is
selected is runs a macro to do this. My program crashes every time I execute
this macro. It seems like a simple enough thing to do.

I have tried many different ways to make the cell value false. These are
some of the examples I have used:

Range("D7").Select
ActiveCell.Value = False

Range("D7").Select
ActiveCell.FormulaR1C1 = "FALSE"

Range("D7").Value = False

If any one can give me some help on this it would be greatly appreciated.

Thanks,
Irfan

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Using a Macro to Change the Value of a Check Box or Combo Box

That works perfect!
Thank you so much for your help, I really appreciate it!
Irfan

"JNW" wrote:

Why not set the check box to false?

Userform1.Checkbox1.value = false

If that doesn't work, you'll need to post more of your code for us to help
you out.

"Irfan" wrote:

Hello There,

I am creating an input screen with different controls such as Combo Boxes,
Check Boxes, etc... I have a Reset Values button which when selected will
make the values of all check boxes false. When the Reset Values button is
selected is runs a macro to do this. My program crashes every time I execute
this macro. It seems like a simple enough thing to do.

I have tried many different ways to make the cell value false. These are
some of the examples I have used:

Range("D7").Select
ActiveCell.Value = False

Range("D7").Select
ActiveCell.FormulaR1C1 = "FALSE"

Range("D7").Value = False

If any one can give me some help on this it would be greatly appreciated.

Thanks,
Irfan

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 I sum up several check boxes conditioned by a combo box? [email protected] Excel Discussion (Misc queries) 4 December 13th 08 12:22 PM
Combo/List Box and Check Box sot Excel Discussion (Misc queries) 1 February 22nd 07 02:18 PM
create a macro for a combo box to change a pivot table [email protected] Excel Programming 1 September 24th 05 10:35 PM
Combo Box - Hide Combo Box w/Check Box Paul Excel Programming 5 December 3rd 04 10:58 PM
Using a Macro with a check box to Change a cell color avi8or54 Excel Programming 1 October 22nd 04 01:55 PM


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