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: 5
Default Executing a macro from pressing a shape

Hello,

I have written a macro that changes the color of a shape (rectangle 1) when
I press on my shape.
I assign the macro to that shape.

I the macro I have :
ActiveSheet.shapes("rectangle 1").select
if Selection.shaperange.fill....etc. then
end if

Now I want to assign this macro to run on any other shapes in my sheet.
But it only execute for shapes("rectangle 1").

Any suggestion?

Thanks


 
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 create a macro that increments +1 by pressing a button Dave Excel Discussion (Misc queries) 2 June 15th 07 10:11 AM
executing a macro within another brian Excel Discussion (Misc queries) 3 July 5th 06 01:22 AM
Macro that shows a cell address when pressing the down or up key cyberdude Excel Discussion (Misc queries) 1 December 4th 05 06:07 AM
Pressing a button using a macro Todd Excel Programming 1 June 6th 05 08:29 AM
What macro is executing? Ken Loomis Excel Programming 3 October 13th 04 05:39 AM


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