Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Linked Cell Macro

Hi there,

I am working on a macro that will allow me to assign the Linked Cell to
a Option (radio) Button. I have a spreadsheet where each row has a set
of option buttons. I need the Linked Cell macro to be a relative one.
When I try to record a relative macro, it just assigns an absolute
value to the Linked Cell column. The code is below. Any ideas?



Sub LINKTEST()
'
' LINKTEST Macro
' Macro recorded 9/26/2003 by M'

'
ActiveSheet.Shapes("Option Button 168").Select
With Selection
.Value = xlOn
.LinkedCell = "$H$103"
.Display3DShading = False
End With
End Sub



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Linked Cell Macro


With ActiveSheet.OptionButtons("Option Button 168")
.Value = xlOn
.LinkedCell = .TopLeftCell.Address(external:=True)
.Display3DShading = False
End With
End Sub

--
Regards,
Tom Ogilvy

mrlnmarce wrote in message
...
Hi there,

I am working on a macro that will allow me to assign the Linked Cell to
a Option (radio) Button. I have a spreadsheet where each row has a set
of option buttons. I need the Linked Cell macro to be a relative one.
When I try to record a relative macro, it just assigns an absolute
value to the Linked Cell column. The code is below. Any ideas?



Sub LINKTEST()
'
' LINKTEST Macro
' Macro recorded 9/26/2003 by M'

'
ActiveSheet.Shapes("Option Button 168").Select
With Selection
Value = xlOn
LinkedCell = "$H$103"
Display3DShading = False
End With
End Sub



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly 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
How do I have a linked cell auto-size to fit the linked data? CristinPDX Excel Discussion (Misc queries) 0 June 24th 08 08:42 PM
Macro for Adding Lines to Linked Spreadsheets Irishimp23 Excel Worksheet Functions 1 March 21st 07 12:14 AM
Error with linked files....Macro Problem??? masterbaker Excel Worksheet Functions 1 July 28th 06 08:23 PM
Macro linked to text or an object areaume Excel Discussion (Misc queries) 1 May 15th 06 08:15 PM
Formula linked to cell with Macro Beginner Excel Worksheet Functions 0 March 30th 05 10:51 PM


All times are GMT +1. The time now is 12:18 AM.

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"