Hi all,
I have a macro which do something, but I want also this macro to input his name into a cell.
Ex.:
I need name "test" into a cell.Please Login or Register to view this content.
Hi all,
I have a macro which do something, but I want also this macro to input his name into a cell.
Ex.:
I need name "test" into a cell.Please Login or Register to view this content.
Last edited by Voicu; 11-02-2009 at 08:44 AM.
Welcome to the forum.
Please take a few minutes to read the forum rules, and then edit your post to add code tags.
Thanks.
You can't call a Sub from the worksheet, only functions.
Last edited by shg; 10-31-2009 at 04:00 PM.
Entia non sunt multiplicanda sine necessitate
Hi,
You don't say which cell, so change A1 below as appropriate.
Please Login or Register to view this content.
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star icon below the post.
Apology for my mistake. In cell A1, I want the name of macro with the same code, indifferent what name has macro.
It is also good for me if in macro I can call a function which return the name of macro.
Hi,
Are you saying that the text in A1 is the name of a macro that you want to run from within another procedure?
If so just use
I prefer using the 'Call' instruction since it reminds you that what follows is a procedure name. However it's only necessary if you want to pass parameters to the procedure. You can just use the procedure name if you prefer.Please Login or Register to view this content.
Regards
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks