Excel Issues

tdfreeman

New Member
Joined
Mar 10, 2009
Messages
2
I am trying to run code to determine which checkboxes are checked. This Excel file was created by non-technical staff and I am trying to update it so that the data can be loaded into Microsoft Access.

The form has checkboxes on one worksheet and I need to determine the values. So, I created the following code as a test my references to the checkboxes and will modify it once I get it working:

Code:
Public Function LoanServicerCheckBox() As Boolean
On Error GoTo Err_LoanServicerCheckBox
    Debug.Print "CheckBox1: " & checkbox1
    Debug.Print "CheckBox10: " & checkbox100
    Debug.Print "CheckBox6: " & checkbox6

 
Exit_LoanServicerCheckBox:
Exit Function
Err_LoanServicerCheckBox:
MsgBox "LoanServicerCheckBox: " & Err.Description & Chr(10) & " Date Passed: " & dtValue
Resume Exit_LoanServicerCheckBox
End Function


My problem is that when I set a breakpoint, the checkboxes are showing Empty, even when I have them checked. Any idea why?

Note: this post is edited from original because I went back and referred to a non-existent (at least I think it is non-existent) checkbox and it returned the same thing. As far as I can tell the checkboxes are not named. How do I find the names for them? I had selected to add a macro to the checkboxes and that is how I had originally guessed their name.

Thank you.

Tammy
 
Last edited by a moderator:

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I may have figured it out. The control is a Form control and in the format options there is a Cell Link. This link is not set. So, since the form has already been sent out, I am probably not going to be able to use this control.

I am writing code to read this Excel file that is being filled out by multiple people. So, I have to load several (probably 50+) and I need an automated way to identify if the control is checked. If anyone has any ideas, I would appreciate them.

Thank you.

Tammy
 
Upvote 0

Forum statistics

Threads
1,214,798
Messages
6,121,636
Members
449,043
Latest member
farhansadik

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