Hi,
I have a curious problem. I'm using a specific excel file to copy a format from. I want to use this format to format another workbook with a macro.
However, when I record the marco it records the specific names of the file you are switching between. (ofcourse)
1. The file from which I take the format is always in the same place and hase the same name.
2. the file which I want to format can be named differently. (i'm running the macro from personal)
Somehow I need to make a reference to: "the workbook from which the marcro is ran"
So:
Windows("filename1.xlsx").Activate
Needs to become:
Windows(working reference to the workbook in which the format macro is activated)Activate
I hope explained this in a clear manner. Is there a solution for this or should I take another route?
I have a curious problem. I'm using a specific excel file to copy a format from. I want to use this format to format another workbook with a macro.
However, when I record the marco it records the specific names of the file you are switching between. (ofcourse)
1. The file from which I take the format is always in the same place and hase the same name.
2. the file which I want to format can be named differently. (i'm running the macro from personal)
Somehow I need to make a reference to: "the workbook from which the marcro is ran"
So:
Windows("filename1.xlsx").Activate
Needs to become:
Windows(working reference to the workbook in which the format macro is activated)Activate
I hope explained this in a clear manner. Is there a solution for this or should I take another route?