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

can a button know what cell it is located? I realize that a button can be
shaped and placed anywhere. Perhaps its location can be inferred by its
attributes (coordinates)? If so, how does one fetch these attributes?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default smart button

Look at the TopLeftCell and BottomRightCell properties of the button.

--

Vasant


"Big Al" wrote in message
...
can a button know what cell it is located? I realize that a button can be
shaped and placed anywhere. Perhaps its location can be inferred by its
attributes (coordinates)? If so, how does one fetch these attributes?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 227
Default smart button

Hi Al

Assuming you have a button called "MyButton" on Sheet1 then

Sub test()
With Sheets("Sheet1")
MsgBox .Buttons("MyButton").TopLeftCell.Address
MsgBox .Buttons("MyButton").BottomRightCell.Address
End With
End Sub

--

XL2003
Regards

William



"Big Al" wrote in message
...
can a button know what cell it is located? I realize that a button can be
shaped and placed anywhere. Perhaps its location can be inferred by its
attributes (coordinates)? If so, how does one fetch these attributes?



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 smart is excel? Anthony[_5_] Excel Discussion (Misc queries) 0 August 10th 11 09:46 PM
Invest smart Mr. Buck Charts and Charting in Excel 0 February 2nd 08 09:59 PM
Invest smart Mr. Buck Charts and Charting in Excel 0 February 1st 08 04:09 AM
Smart tags reno Excel Discussion (Misc queries) 0 January 9th 06 10:32 PM
Smart subtotals kortrijkzaantje Excel Worksheet Functions 0 October 29th 04 10:23 AM


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