G
George J
When i press CTRL+N with the first workbook active it will
copy rows 4 to 13 which is what i want.
When i press CTRL+N with the second workbook active it
will copy rows 4 to 13 instead of 3 to 35 if the first
workbook is still open.
This seems to be because the macros use thisworkbook
instead of activeworkbook
Closing down the first workbook may create problems as
other users will be using these templates and may have
made changes they do not want saved.
And of course as these files will be made from templates,
the names will always be different.
Can't see any way around this as i cannot activate the
second macro that refers to CTRL+N if the first workbook
is still open.
I can stop the macro firing if thisworkbook is not
activeworkbook, but how do i then get it to change what
thisworkbook is (ie to the 2nd one).
If this makes sense to anyone, please help.
copy rows 4 to 13 which is what i want.
When i press CTRL+N with the second workbook active it
will copy rows 4 to 13 instead of 3 to 35 if the first
workbook is still open.
This seems to be because the macros use thisworkbook
instead of activeworkbook
Closing down the first workbook may create problems as
other users will be using these templates and may have
made changes they do not want saved.
And of course as these files will be made from templates,
the names will always be different.
Can't see any way around this as i cannot activate the
second macro that refers to CTRL+N if the first workbook
is still open.
I can stop the macro firing if thisworkbook is not
activeworkbook, but how do i then get it to change what
thisworkbook is (ie to the 2nd one).
If this makes sense to anyone, please help.