Workbooks(). close intermittent failure

A

Alan

My Excel application requires frequent and rapid openings
& closures of other workbooks. "Workbooks(ThatBook).Close
savechanges:= True" succeeds when called within one
procedure, but fails when called within another. Opening
and closing is usually done within
an "Application.Screenupdating = True / False" shell.
The anomaly is the same if I use "Windows(ThatBook).Close"

Any advice would be appreciated.
 
T

Tom Ogilvy

the only reason I could see that failing is if
thatbook does not contain the name of an open workbook (may be a
scoping/visibility problem)

Regards,
Tom Ogilvy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top