Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default VBA for InputBox-Like CheckBox

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default VBA for InputBox-Like CheckBox

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default VBA for InputBox-Like CheckBox

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
  #4   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default VBA for InputBox-Like CheckBox

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

  #5   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default VBA for InputBox-Like CheckBox

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



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default VBA for InputBox-Like CheckBox

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
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
How to have Checkbox A uncheck with checked Checkbox B Texas Aggie Excel Discussion (Misc queries) 3 July 20th 07 10:58 PM
link a checkbox in a sheet to a checkbox on a userform? Arjan Excel Programming 0 November 10th 06 01:37 PM
checkbox on form reset from checkbox on sheet raw[_12_] Excel Programming 1 December 3rd 05 05:08 AM
Checkbox like inputbox Turgeon Excel Programming 1 May 12th 05 06:29 PM
Inputbox and Application.InputBox Maria[_7_] Excel Programming 1 September 20th 04 11:36 AM


All times are GMT +1. The time now is 05:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"