Re: Closing methods
- From: paul.robinson@xxxxxxxxxxxxxx
- Date: 10 Nov 2006 02:09:13 -0800
Hi
I don't think event code fires when you open or close using CODE, but
then your code executing after the select is odd?
regards
Paul
kurt wrote:
He All
I have a funny problem when closing files from a macro outside the file
I want to close. That I cant imagine what is happend.
I have in my Personal.xls a macro called Close_files.
When I execute this macro the function is to close the workbook called
test.xls.
In test.xls there is a macro - Sub Workbook_BeforeClose(Cancel As
Boolean)-
in this there is an expression - Sheets("Base informations").Select
When I run macro Close_files; Sheets("Base informations").Select --
is not selected
The rest of the
code is executed as normal
When I close test.xls; Sheets("Base informations").Select - is
selected
The rest of the code is
executed as normal
Please Help
regards
Kurt
.
- Follow-Ups:
- Re: Closing methods
- From: kurt
- Re: Closing methods
- References:
- Closing methods
- From: kurt
- Closing methods
- Prev by Date: Re: Closing methods
- Next by Date: How to embed a PDF file into a userform
- Previous by thread: Re: Closing methods
- Next by thread: Re: Closing methods
- Index(es):