Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
TotallyConfused
 
Posts: n/a
Default Checkboxes in Excel - Please Help!

I have several checkboxes in a form that I need to have the "True" or "False"
be filled in the database for this form. How do I do this?
  #2   Report Post  
Ron de Bruin
 
Posts: n/a
Default Checkboxes in Excel - Please Help!

Hi TotallyConfused

I don't think i understand you but with code you can change the
checkboxes like this

Sub test1()
'control toolbox controls
For Each obj In ActiveSheet.OLEObjects
If TypeOf obj.Object Is MSForms.CheckBox Then
obj.Object.Value = False
End If
Next
End Sub


Sub test2()
'forms controls
ActiveSheet.CheckBoxes.Value = False
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"TotallyConfused" wrote in message
...
I have several checkboxes in a form that I need to have the "True" or "False"
be filled in the database for this form. How do I do this?



  #3   Report Post  
TotallyConfused
 
Posts: n/a
Default Checkboxes in Excel - Please Help!

Ron thanks for responding. I am not having problems with checking or
unchecking the checkboxes in my form. What I need is to have the outcome of
the checkbox which would be a check or uncheck to export to the database
linked to this form. So when I save my form and create a new record a True
or False will be populated in the corresponding columns in the database. Or
is there another way to do this?

"Ron de Bruin" wrote:

Hi TotallyConfused

I don't think i understand you but with code you can change the
checkboxes like this

Sub test1()
'control toolbox controls
For Each obj In ActiveSheet.OLEObjects
If TypeOf obj.Object Is MSForms.CheckBox Then
obj.Object.Value = False
End If
Next
End Sub


Sub test2()
'forms controls
ActiveSheet.CheckBoxes.Value = False
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"TotallyConfused" wrote in message
...
I have several checkboxes in a form that I need to have the "True" or "False"
be filled in the database for this form. How do I do this?




  #4   Report Post  
Ron de Bruin
 
Posts: n/a
Default Checkboxes in Excel - Please Help!

If you use a checkbox from the controltoolbox you can use
linkedcell in the properties.

Copy this cell also to your database then

--
Regards Ron de Bruin
http://www.rondebruin.nl


"TotallyConfused" wrote in message
...
Ron thanks for responding. I am not having problems with checking or
unchecking the checkboxes in my form. What I need is to have the outcome of
the checkbox which would be a check or uncheck to export to the database
linked to this form. So when I save my form and create a new record a True
or False will be populated in the corresponding columns in the database. Or
is there another way to do this?

"Ron de Bruin" wrote:

Hi TotallyConfused

I don't think i understand you but with code you can change the
checkboxes like this

Sub test1()
'control toolbox controls
For Each obj In ActiveSheet.OLEObjects
If TypeOf obj.Object Is MSForms.CheckBox Then
obj.Object.Value = False
End If
Next
End Sub


Sub test2()
'forms controls
ActiveSheet.CheckBoxes.Value = False
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"TotallyConfused" wrote in message
...
I have several checkboxes in a form that I need to have the "True" or "False"
be filled in the database for this form. How do I do this?






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
VBA for Excel 2000 file is corrupt nkamp Excel Discussion (Misc queries) 0 May 26th 05 03:37 PM
Stop Excel Rounding Dates leinad512 Excel Discussion (Misc queries) 1 April 20th 05 04:19 PM
Hints And Tips For New Posters In The Excel Newsgroups Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM
Excel error - Startup (and Acrobat PDFMaker) gxdata Setting up and Configuration of Excel 0 February 4th 05 03:44 AM
Excel 2002 and 2000 co-install. Control Which Starts ? cnuk Excel Discussion (Misc queries) 2 January 17th 05 08:07 PM


All times are GMT +1. The time now is 01:29 AM.

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"