Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA - Option Button

Hi

I have option buttons called "one" and "two"

How can I made option button "one" be preselected by defect?

(when I run the macro, obtion button "one" must appear selected.

Thanks

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default VBA - Option Button

MacroName()
OptionButton1.Value = True
'more code,...
End Sub

'If the option button is in a form, use:

Private Sub UserForm_Initialize()
OptionButton1.Value = True
End Sub


"ajliaks " wrote in message
...
Hi

I have option buttons called "one" and "two"

How can I made option button "one" be preselected by defect?

(when I run the macro, obtion button "one" must appear selected.

Thanks.


---
Message posted from http://www.ExcelForum.com/




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
keep source formatting is not an option in paste option button Tina Excel Discussion (Misc queries) 0 February 20th 06 09:58 PM
Getting value of Option button BG Excel Discussion (Misc queries) 2 September 27th 05 01:47 PM
Getting value of Option button BG Excel Worksheet Functions 2 September 27th 05 01:47 PM
Option Button Help justaguyfromky Excel Worksheet Functions 2 September 5th 05 10:28 PM
Option Button Karen Excel Discussion (Misc queries) 4 February 16th 05 08:35 PM


All times are GMT +1. The time now is 03:06 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"