ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   event to know after data has loaded (https://www.excelbanter.com/excel-programming/324100-event-know-after-data-has-loaded.html)

Eric[_27_]

event to know after data has loaded
 
I have a large workbook with close to 200 sheets in it, so it takes awhile
for it to open (10 seconds or so).

Is there a way for my vba code to know when the workbook is done opening, so
I could then start my code?

TIA



Nick Hodge

event to know after data has loaded
 
Eric

You could place it in the Workbook_Open() event. This way it should run as
soon as it can???

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"Eric" wrote in message
ink.net...
I have a large workbook with close to 200 sheets in it, so it takes awhile
for it to open (10 seconds or so).

Is there a way for my vba code to know when the workbook is done opening,
so I could then start my code?

TIA




Eric[_27_]

event to know after data has loaded
 
Hi Nick,

That's what I have been doing, but doing so obscures all my nice status
messages and makes it more difficult to debug all the setup work ive got
going in there.

Thanks

"Nick Hodge" wrote in message
...
Eric

You could place it in the Workbook_Open() event. This way it should run as
soon as it can???

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"Eric" wrote in message
ink.net...
I have a large workbook with close to 200 sheets in it, so it takes awhile
for it to open (10 seconds or so).

Is there a way for my vba code to know when the workbook is done opening,
so I could then start my code?

TIA






Nick Hodge

event to know after data has loaded
 
Eric

What about forcing a calculation on a worksheet as a last line and then
doing something with the Worksheet_Calculate() event?

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"Eric" wrote in message
ink.net...
Hi Nick,

That's what I have been doing, but doing so obscures all my nice status
messages and makes it more difficult to debug all the setup work ive got
going in there.

Thanks

"Nick Hodge" wrote in message
...
Eric

You could place it in the Workbook_Open() event. This way it should run
as soon as it can???

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"Eric" wrote in message
ink.net...
I have a large workbook with close to 200 sheets in it, so it takes
awhile for it to open (10 seconds or so).

Is there a way for my vba code to know when the workbook is done
opening, so I could then start my code?

TIA









All times are GMT +1. The time now is 07:56 PM.

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