Problem with Network Latency

A

Adrian D. Bailey

I have a problem that I believe is being caused by time delays on a network,
and I need to find a workaround.

My workbook has a macro which opens a further workbook, using this line of
code...

Workbooks.Open
Filename:="\\staff-filestore\shared\hu\hu-admin\admin06\DATA.XLS",
ReadOnly:=True

This works for some users and not for others.
All users are already logged in to the same corporate network, all using the
same OS and the same browser and the same version of MSOffice. However, some
computers are newer and faster than others, and some network sections are
limited to 10Mb whereas others are 100Mb.
It seems that a fast computer on a slow network tends to fail on this line
of code, with a "file not found" error. Interestingly, if you enter the
debugger and press f5 (to continue) then the macro runs just fine, which
seems to suggest that the time delay has given the network a chance to
respond.

Is my hypothesis plausible, and if so what can I do to workaround?

--
Adrian D.Bailey, Information and Systems Manager, Dept.Human Sciences
Loughborough University, Loughborough Leics, LE11 3TU, UK.
(e-mail address removed) Tel: 01509 223007 Fax: 01509 223940

Community Warden, Storer and Burleigh Areas. Out-of-hours Tel: 01509 563263
--
 
N

NickHK

Adrian,
Assuming that you have checked all the normal:
file does exist
path exists
user has permission
network is up

Does it make any difference using mapped drives v. UNC paths ?
What if you do some check (e.g. GetAttr) on the file first ?

NickHK
 
A

Adrian D. Bailey

The fact that the macro continues successfully indicates that all "the
normal" is good.
It takes some time to test each change that I try out, so for now I'll say
thanks for your thoughts, and I'll write again in a while....
--
Adrian D.Bailey, Information and Systems Manager, Dept.Human Sciences
Loughborough University, Loughborough Leics, LE11 3TU, UK.
(e-mail address removed) Tel: 01509 223007 Fax: 01509 223940

Community Warden, Storer and Burleigh Areas. Out-of-hours Tel: 01509 563263
--

NickHK said:
Adrian,
Assuming that you have checked all the normal:
file does exist
path exists
user has permission
network is up

Does it make any difference using mapped drives v. UNC paths ?
What if you do some check (e.g. GetAttr) on the file first ?

NickHK
 

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

Similar Threads

Network Username 2
Can't launch Internet Explorer 1
Find position of cursor in text box 2
Getting started 1
Rounded Rectangle 3
When to use With - End With? 3
What's this new sheet? 6
Speed this up for me, please 1

Top