Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Mo Mo is offline
external usenet poster
 
Posts: 69
Default how do I add an option button in Excel

I am trying to make a monthly check list where each cell represents one day
of the month and in each cell (day) I would like to put an option button.
any suggestion.
thanks

MO.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default how do I add an option button in Excel

Hi MO,

Try:

'=============
Public Sub InsertOptionButtons()
Dim c As Range

Application.ScreenUpdating = False
For Each c In Selection
With ActiveSheet.OptionButtons. _
Add(c.Left + 5, c.Top - 2, 5, 5)
.Caption = ""
.LinkedCell = c.Address(False, False)
End With
c.Font.Color = vbWhite
Next c
Application.ScreenUpdating = True

End Sub
'<<=============

---
Regards,
Norman


"MO" wrote in message
...
I am trying to make a monthly check list where each cell represents one day
of the month and in each cell (day) I would like to put an option button.
any suggestion.
thanks

MO.



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
Excel- option button Excel Master Wannabe Excel Worksheet Functions 7 June 26th 07 06:18 PM
Excel 2002 has no option to add the save as button to the toolbar- kselg Excel Discussion (Misc queries) 2 August 22nd 06 05:48 PM
keep source formatting is not an option in paste option button Tina Excel Discussion (Misc queries) 0 February 20th 06 09:58 PM
In excel how do I delete an option button form already in worksht Va run Excel Discussion (Misc queries) 1 October 27th 05 07:10 AM
how to access a value from excel option button using visual basic? henry Excel Programming 2 February 28th 05 12:32 PM


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