ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   macro naming (https://www.excelbanter.com/excel-programming/439753-macro-naming.html)

Brian Cook

macro naming
 
Is there some way of naming macros in excel so that if someone saves the
workbook with a different name, the macro will still run?

Thanks!

dan dungan

macro naming
 
Hi Brian,
It seems that the macro name isn't the issue. I think you need to
change the way you are referencing the worksheets or workbook in your
macro. I think if you post the code someone will be able to assist.

Dan

Ryan H

macro naming
 
Yeah, you can write the code to be universal. Post your code so we can help.
--
Cheers,
Ryan


"Brian Cook" wrote:

Is there some way of naming macros in excel so that if someone saves the
workbook with a different name, the macro will still run?

Thanks!



All times are GMT +1. The time now is 10:17 PM.

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