check boxes on sheet1

eds000

Board Regular
Joined
Dec 11, 2006
Messages
76
sheet1 is an application form the has been completed by the user, so I do NOT enable the macro when I open the file. The problem is that I have a macro that pulls the data off the application and checks the check boxes to see if they have been checked. I orginally used an "OR" but when that came up with an error I then broke it up as follows but I still get a compliation error. Please help!

If Sheets("Form").CheckBox1.Value = "True" Then sERROR = "RESTRICTION1"
If Sheets("Form").CheckBox2.Value = "True" Then sERROR = "RESTRICTION2"
If Sheets("Form").CheckBox3.Value = "True" Then sERROR = "RESTRICTION3"
If Sheets("Form").CheckBox4.Value = "True" Then sERROR = "RESTRICTION4"
If Sheets("Form").CheckBox5.Value = "True" Then sERROR = "RESTRICTION5"
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
PLEASE HELP- no one know why I get an error message when I check to see if a checkbox has been checked when I disabled the macro. I don't want the application macro running when I use another macro to extract the data.
 
Upvote 0

Forum statistics

Threads
1,224,541
Messages
6,179,418
Members
452,912
Latest member
alicemil

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