user form check box

Mikal

Board Regular
Joined
Aug 31, 2015
Messages
73
I have a user form that include a check box. If you check the box it runs formulas and puts data in a different column than if it isn't checked. When I open the user form if there is data on the sheet it pulls it in to the user form, and you can modify as needed, however it does not recheck the box. is there away to get the box to be checked if I checked it he first time?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
.
Thinking out loud (in my head ...), if you capture the check when the box is clicked ... in other words, save an indication
the box was checked by placing an "x" or a "1" or some type of symbol on the worksheet .. then when the form is re-opened
you can include code to check that cell to determine if it is empty or not.

If empty ... the checkbox also is empty. If not empty ... the checkbox would be checked.
 
Upvote 0
Currently it puts a value or a 0 in the column. What code would I use so it looks at that column and if it is greater than Zero it checks the checkbox?
 
Upvote 0
.
Something like :

If Sheet1.Range("A1").Value > 0 then
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,633
Members
452,661
Latest member
Nonhle

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top