Rabu, 31 Desember 2014

RE: [ExcelVBA] Detect which shape "starts" a macro

 

Use Application.Caller

 

 

From: ExcelVBA@yahoogroups.com [mailto:ExcelVBA@yahoogroups.com]
Sent: 21 December 2014 16:26
To: ExcelVBA@yahoogroups.com
Subject: [ExcelVBA] Detect which shape "starts" a macro

 

 

In a worksheet there are several shapes.

 

They are all assigned to the same macro.

 

Is it possible in the macro to detect which skape that was "clicked on" to start the macro?

 

I wish the macro to do different tasks dependent on which shape that started it!

 

Is there a sort of activeShape object?

 

Regards and Merry Christmas to all of you Excelers!

 

Torstein Johnsen

__._,_.___

Posted by: "Bob Phillips" <bob.phillips@dsl.pipex.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (5)
----------------------------------
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.

----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA

----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com

----------------------------------

.

__,_._,___

Tidak ada komentar:

Posting Komentar