LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 274
Default Can this be done?

Hi All,

Using FSO l am looping thru approx 30 files in a folder and retrieving
data. Additionally in each of the files there is an error checker so l
thought it would be a good idea to run the error checker and retrieve
the number of errors at the same time.

It all works fine apart from 'ScreenUpdating'. If l run the macro
without this code snippet (which runs the error checker) there is no
screen updating whatsoever as it was set to FALSE and has not been
switched back on again.

If l run the code with the code snippet the 'window' is constantly
switching between the 2 open workbooks as each file in the folder is
opened.

Is there a way round this??

CODE SNIPPET:
Application.Run (myFN & "!Unprotect")
Application.Run (myFN & "!ErrCheck")
SendKeys "{ENTER}", False
ErrorNos = mybook.Sheets("Start Here").Range("D28").Value

Sorry about the SendKeys but it is needed to respond to a MsgBox in
the ErrCheck macro. Unless anybody knows a better way?

Regards

Michael Beckinsale

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"