ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Calling a variable macro (https://www.excelbanter.com/excel-programming/335907-calling-variable-macro.html)

Hari Prasadh[_2_]

Calling a variable macro
 
Hi,

Can I call name of the macro based on a value in an Excel sheet

Like A1 has "Rename"

Then in VBA can I write

Call Range("A1").value

It doesnt work.

Thanks a lot,
Hari
India



Tim Williams

Calling a variable macro
 
try

application.run Range("A1").value

Tim
--
Tim Williams
Palo Alto, CA


"Hari Prasadh" wrote in message
...
Hi,

Can I call name of the macro based on a value in an Excel sheet

Like A1 has "Rename"

Then in VBA can I write

Call Range("A1").value

It doesnt work.

Thanks a lot,
Hari
India





Hari Prasadh[_2_]

Calling a variable macro
 
Hi Tim,

Thanks for your help.

Regards,
Hari
India

"Tim Williams" <timjwilliams at gmail dot com wrote in message
...
try

application.run Range("A1").value

Tim






All times are GMT +1. The time now is 12:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com