Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I was wondering if there is a way to call for a Check Box via VBA just like
you can call a InputBox? Instead of -- WhatAnswer = Inputbox (Input Your Answer) Maybe WhatAnswer = CheckBox ()??? I have a feeling the answer is no but can someone make it official or describe how I can do this? Thanks Much, Rob |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
OK, Rob, the answer is NO. However, you can put a checkbox on a userform
with its associated code and then call the userform when needed. You can also write a separate sub routine that adds a checkbox, names it and ties it to associated code. In my view the userform is the easiest. "Rob" wrote: I was wondering if there is a way to call for a Check Box via VBA just like you can call a InputBox? Instead of -- WhatAnswer = Inputbox (Input Your Answer) Maybe WhatAnswer = CheckBox ()??? I have a feeling the answer is no but can someone make it official or describe how I can do this? Thanks Much, Rob |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks JWhiz. I ended up using a MsgBox instead but I am, however,
interested on what you mean by... "You can also write a separate sub routine that adds a checkbox, names it and ties it to associated code." That sounds interesting and fun. Where can I go to get some sample code for that? Cheers! "JLGWhiz" wrote: OK, Rob, the answer is NO. However, you can put a checkbox on a userform with its associated code and then call the userform when needed. You can also write a separate sub routine that adds a checkbox, names it and ties it to associated code. In my view the userform is the easiest. "Rob" wrote: I was wondering if there is a way to call for a Check Box via VBA just like you can call a InputBox? Instead of -- WhatAnswer = Inputbox (Input Your Answer) Maybe WhatAnswer = CheckBox ()??? I have a feeling the answer is no but can someone make it official or describe how I can do this? Thanks Much, Rob |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm not sure what you're doing, but maybe you could use a msgbox and just ask a
yes/no question???? Rob wrote: I was wondering if there is a way to call for a Check Box via VBA just like you can call a InputBox? Instead of -- WhatAnswer = Inputbox (Input Your Answer) Maybe WhatAnswer = CheckBox ()??? I have a feeling the answer is no but can someone make it official or describe how I can do this? Thanks Much, Rob -- Dave Peterson |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That just happens to be exactly what I ended up resorting to. I just wished
there was a way to customize the text that shows up on the MsgBox Buttons. :? Rob "Dave Peterson" wrote: I'm not sure what you're doing, but maybe you could use a msgbox and just ask a yes/no question???? Rob wrote: I was wondering if there is a way to call for a Check Box via VBA just like you can call a InputBox? Instead of -- WhatAnswer = Inputbox (Input Your Answer) Maybe WhatAnswer = CheckBox ()??? I have a feeling the answer is no but can someone make it official or describe how I can do this? Thanks Much, Rob -- Dave Peterson |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can design your own userform and make anything you like.
Rob wrote: That just happens to be exactly what I ended up resorting to. I just wished there was a way to customize the text that shows up on the MsgBox Buttons. :? Rob "Dave Peterson" wrote: I'm not sure what you're doing, but maybe you could use a msgbox and just ask a yes/no question???? Rob wrote: I was wondering if there is a way to call for a Check Box via VBA just like you can call a InputBox? Instead of -- WhatAnswer = Inputbox (Input Your Answer) Maybe WhatAnswer = CheckBox ()??? I have a feeling the answer is no but can someone make it official or describe how I can do this? Thanks Much, Rob -- Dave Peterson -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to have Checkbox A uncheck with checked Checkbox B | Excel Discussion (Misc queries) | |||
link a checkbox in a sheet to a checkbox on a userform? | Excel Programming | |||
checkbox on form reset from checkbox on sheet | Excel Programming | |||
Checkbox like inputbox | Excel Programming | |||
Inputbox and Application.InputBox | Excel Programming |