If you want to know the shape name and shape inside text which you have clicked to Run a Macro. Snapshot Below-
Here is the code
Sub test()
' it will display you the shape name which you have clicked
MsgBox "Shape Name ---------> " & Application.Caller
' it will display you the text inside the shape which you have clicked
MsgBox "Shape Inside Text ---------> " & ActiveSheet.Shapes(Application.Caller).TextFrame.Characters.Text
End Sub
assign this macro to each shape.
Excel Macro File http://www.filefactory.com/file/cd26f4b/n/Design.xlsm
Subscribe to:
Post Comments (Atom)
Import data from SQL
Macro to import data from SQL using ADO connection string: Sub Import_data_from_SQL() ' Tools -> References -> Microsoft Active...
-
If you have added the shape in the sheet and now you want to change it color , text , font size ,etc using VBA. Snapshot below Code- Su...
-
If you want to add a new pop up button on mouse right click menu and as soon as you click on it . It shows you multiple buttons with macro a...
No comments:
Post a Comment