Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jm Jm is offline
external usenet poster
 
Posts: 2
Default Change Option Button Property Value with VBA

Hi,

I need to mirror the Value of a Option Button (List2) when Option Button
(List1) is clicked on.

Note: List1 and List2 are in different Option Button Groups.

The code below give me an "Object Required" error.

What do I need to change?

Private Sub List1OB_Click()
With Object.List2OB
.Value = True
End With
End Sub

Thanks,
Jim


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Change Option Button Property Value with VBA

Use
With Me.List2OB
.Value = True
End With


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Jm" wrote in message
...
Hi,

I need to mirror the Value of a Option Button (List2) when

Option Button
(List1) is clicked on.

Note: List1 and List2 are in different Option Button Groups.

The code below give me an "Object Required" error.

What do I need to change?

Private Sub List1OB_Click()
With Object.List2OB
.Value = True
End With
End Sub

Thanks,
Jim




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
2007: Property Sheet button disabled Richard H Excel Discussion (Misc queries) 5 February 26th 08 02:21 AM
Change insidewidth property M Selvaraj Charts and Charting in Excel 1 April 23rd 06 01:07 PM
keep source formatting is not an option in paste option button Tina Excel Discussion (Misc queries) 0 February 20th 06 09:58 PM
Why does Option Button not hold transparent property? ARB Excel Discussion (Misc queries) 1 August 2nd 05 06:47 PM
Worksheet / Workbook Change Property Peter Excel Programming 3 April 28th 04 01:56 PM


All times are GMT +1. The time now is 10:08 PM.

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"