I posted an earlier question about problems with a macro, but in trying to figure it out, have come across a lot larger issue:
I have a template that I am working on right now. When it is complete, I want to copy this template as another template for 80 or so different company folders. For example: Original.xlt becomes company1.xlt - company80.xlt
The end users will be using the company templates, not the original that I have made.
As part of this template, I have a custom toolbar with 5 separate buttons that run macros.
I seem to be having problems with some of these macros. Its as if somehow excel remembers the last workbook that the macro was used for, and therefore the buttons stop working when I try to use it in a new workbook. One example is:
I have a macro that simply changes the file status to read/write. It works fine on the original, but on any of the other workbook templates, when clicked, it tries to run on the workbook that was open the last time it was clicked. The code uses Activeworkbook.etc.etc... I never specify a named file.
basically I want these macros to be universally used by all the templates. How can I do this?
I hope I am explaining this ok. it seems confusing to even type. I hope someone can help.
Thanks.
Mark
I have a template that I am working on right now. When it is complete, I want to copy this template as another template for 80 or so different company folders. For example: Original.xlt becomes company1.xlt - company80.xlt
The end users will be using the company templates, not the original that I have made.
As part of this template, I have a custom toolbar with 5 separate buttons that run macros.
I seem to be having problems with some of these macros. Its as if somehow excel remembers the last workbook that the macro was used for, and therefore the buttons stop working when I try to use it in a new workbook. One example is:
I have a macro that simply changes the file status to read/write. It works fine on the original, but on any of the other workbook templates, when clicked, it tries to run on the workbook that was open the last time it was clicked. The code uses Activeworkbook.etc.etc... I never specify a named file.
basically I want these macros to be universally used by all the templates. How can I do this?
I hope I am explaining this ok. it seems confusing to even type. I hope someone can help.
Thanks.
Mark