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

I am STILL working on a spreadsheet that uses a lot of Option Buttons (all
grouped nicely). I am finding that the "Cell Link" sometimes gets
disassociated from the original cell. I would like to fix this by writing a
chunk of code for the ActiveSheet.OptionButtons. object, but don't know how
to tell it that OptionButton (Option Button 17) should be linked to cell
C$17$ (which has a named value of "LV_PAXType".

Can someone help?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Option Button - Cell Link Issue

Coincidence or is there a relationship between the option button name having
the row number in it.

Dim ob as OptionButton
for each ob in activesheet.Optionbuttons
sName = ob.Name
rw = trim(Right(sName,2))
ob.LinkedCell = "'" & Activesheet.Name & "'!C" & rw
Next

--
Regards,
Tom Ogilvy


"John Jost" wrote in message
...
I am STILL working on a spreadsheet that uses a lot of Option Buttons (all
grouped nicely). I am finding that the "Cell Link" sometimes gets
disassociated from the original cell. I would like to fix this by writing

a
chunk of code for the ActiveSheet.OptionButtons. object, but don't know

how
to tell it that OptionButton (Option Button 17) should be linked to cell
C$17$ (which has a named value of "LV_PAXType".

Can someone help?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Option Button - Cell Link Issue

Tom,
Thanks for your help. It was the "LinkedCell" object I was missing.
Unfortunately, the "$C" & rw won't help as my pointer may or may not be on
the same row in all instances. But this does get me where I need to go.

Where can I find all the Groupbox, OptionButton, and Checkbox
properties/object information? This has been a real stumbing block, as if I
dont know the property I need I dont know what to type.

"Tom Ogilvy" wrote:

Coincidence or is there a relationship between the option button name having
the row number in it.

Dim ob as OptionButton
for each ob in activesheet.Optionbuttons
sName = ob.Name
rw = trim(Right(sName,2))
ob.LinkedCell = "'" & Activesheet.Name & "'!C" & rw
Next

--
Regards,
Tom Ogilvy


"John Jost" wrote in message
...
I am STILL working on a spreadsheet that uses a lot of Option Buttons (all
grouped nicely). I am finding that the "Cell Link" sometimes gets
disassociated from the original cell. I would like to fix this by writing

a
chunk of code for the ActiveSheet.OptionButtons. object, but don't know

how
to tell it that OptionButton (Option Button 17) should be linked to cell
C$17$ (which has a named value of "LV_PAXType".

Can someone help?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Option Button - Cell Link Issue

In the object browser, right click and select view hidden properties. Then
find OptionButton in the object browser (under the Excel library).

--
Regards,
Tom Ogilvy

"John Jost" wrote in message
...
Tom,
Thanks for your help. It was the "LinkedCell" object I was missing.
Unfortunately, the "$C" & rw won't help as my pointer may or may not be on
the same row in all instances. But this does get me where I need to go.

Where can I find all the Groupbox, OptionButton, and Checkbox
properties/object information? This has been a real stumbing block, as if

I
dont know the property I need I dont know what to type.

"Tom Ogilvy" wrote:

Coincidence or is there a relationship between the option button name

having
the row number in it.

Dim ob as OptionButton
for each ob in activesheet.Optionbuttons
sName = ob.Name
rw = trim(Right(sName,2))
ob.LinkedCell = "'" & Activesheet.Name & "'!C" & rw
Next

--
Regards,
Tom Ogilvy


"John Jost" wrote in message
...
I am STILL working on a spreadsheet that uses a lot of Option Buttons

(all
grouped nicely). I am finding that the "Cell Link" sometimes gets
disassociated from the original cell. I would like to fix this by

writing
a
chunk of code for the ActiveSheet.OptionButtons. object, but don't

know
how
to tell it that OptionButton (Option Button 17) should be linked to

cell
C$17$ (which has a named value of "LV_PAXType".

Can someone help?






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
Cell Paste using cell link option Half works MardiT Excel Worksheet Functions 4 July 28th 08 06:51 PM
Help to get values from 3 option button in one cell Valeriy Excel Programming 2 July 15th 05 02:28 PM
Option Button-Format Control-Cell Link... andym Excel Programming 7 October 5th 04 01:49 PM
Control Cell Link for Option Button based on value in a cell arunjoshi[_14_] Excel Programming 1 May 5th 04 02:19 AM
Control Cell Link for Option Button based on value in a cell arunjoshi[_13_] Excel Programming 0 May 4th 04 05:46 AM


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