LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Write a button to run macro on *ANY* chart area clicked.

How do I identify an object in a macro when I click on it? I want to operate
on the object and must have some recognizable identity to use in the macro
because I want the macro to operate on any object (really a chart) that I
click on. I know how to identify an arbitrary cell by clicking on it and how
to use the identity to run in a visual basic macro. For example:
co = ActiveCell.Offset(0, -1).Range("A1").Column
ro = ActiveCell.Offset(0, -1).Range("A1").Row
give me the cell identity of the cell that I click on -- (ro, co) being the
cell that was clicked on. Is there some way to identify a "Chart Area" in
such a manner? --LJM
 
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
Macro button gets bigger when clicked Snowskier Excel Discussion (Misc queries) 1 May 27th 10 09:36 PM
Change Macro button color after clicked Cong Nguyen Excel Discussion (Misc queries) 2 November 30th 07 02:55 PM
why is the chart displayed only when the chart area is clicked on? Vivien Charts and Charting in Excel 1 October 27th 06 04:29 PM
Pause macro, add form button to sheet, continue macro when button clicked! Flystar[_15_] Excel Programming 1 May 26th 04 09:45 AM
How to end macro on inital active worksheet containing macro button that was clicked Silverhawk1 Excel Programming 2 May 14th 04 03:58 PM


All times are GMT +1. The time now is 06:51 PM.

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"