Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Procedures stop with no indication of problem

I have a macro that opens workbooks on a server on the West Coast (I'm on the
East) and extracts data from multiple files in multiple folders.
Intermittently, it will just stop somewhere in the middle with no obvious
cause of the problem. I have periodic "On Error Resume Next", but I've
followed it with "On Error goto 0" in every case.

I *think* my problem is somehow related to network connectivity, but I don't
know that for sure. Does anyone have a suggestion of something for me to
look for so that I know what's happening and how to ensure it doesn't happen?

Thanks,
Barb Reinhardt
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Procedures stop with no indication of problem

You can put

Application.StatusBar = "Step 1, File 1"

in several places to see where it hangs.

This appears at the bottom left of the screen.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Procedures stop with no indication of problem

I have that in place already and it hangs at different times. Any other
suggestions?

Thanks
Barb Reinhardt

"David Sisson" wrote:

You can put

Application.StatusBar = "Step 1, File 1"

in several places to see where it hangs.

This appears at the bottom left of the screen.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Procedures stop with no indication of problem

Try peppering your code with:

Debug.print "some unique identifier here"

(lots of them)

Then you may be able to see where things break.

=====
As an aside, I used to have a file that would open other files on a remote
network and it didn't stop--but it took forever.

I added a step to copy the files to a local temporary folder and ran against
those copies and the speed increase was noticeable.

Barb Reinhardt wrote:

I have that in place already and it hangs at different times. Any other
suggestions?

Thanks
Barb Reinhardt

"David Sisson" wrote:

You can put

Application.StatusBar = "Step 1, File 1"

in several places to see where it hangs.

This appears at the bottom left of the screen.



--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Procedures stop with no indication of problem

I could do that, but I need to be able to know the original URL for these
files. The strange thing is sometimes it runs through with no problems and
sometimes it just stops. Yesterday, we were having network issues and it
stopped multiple times. Is there some way to "test" for that?

Thanks,
Barb

"Dave Peterson" wrote:

Try peppering your code with:

Debug.print "some unique identifier here"

(lots of them)

Then you may be able to see where things break.

=====
As an aside, I used to have a file that would open other files on a remote
network and it didn't stop--but it took forever.

I added a step to copy the files to a local temporary folder and ran against
those copies and the speed increase was noticeable.

Barb Reinhardt wrote:

I have that in place already and it hangs at different times. Any other
suggestions?

Thanks
Barb Reinhardt

"David Sisson" wrote:

You can put

Application.StatusBar = "Step 1, File 1"

in several places to see where it hangs.

This appears at the bottom left of the screen.



--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Procedures stop with no indication of problem

Not in my world--but I'm not smart enough to know for sure.

I'd either google for network problems or maybe ask in a newsgroup dedicated to
networks.

Barb Reinhardt wrote:

I could do that, but I need to be able to know the original URL for these
files. The strange thing is sometimes it runs through with no problems and
sometimes it just stops. Yesterday, we were having network issues and it
stopped multiple times. Is there some way to "test" for that?

Thanks,
Barb

"Dave Peterson" wrote:

Try peppering your code with:

Debug.print "some unique identifier here"

(lots of them)

Then you may be able to see where things break.

=====
As an aside, I used to have a file that would open other files on a remote
network and it didn't stop--but it took forever.

I added a step to copy the files to a local temporary folder and ran against
those copies and the speed increase was noticeable.

Barb Reinhardt wrote:

I have that in place already and it hangs at different times. Any other
suggestions?

Thanks
Barb Reinhardt

"David Sisson" wrote:

You can put

Application.StatusBar = "Step 1, File 1"

in several places to see where it hangs.

This appears at the bottom left of the screen.



--

Dave Peterson


--

Dave Peterson
Reply
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell has focus but no indication that it does. Jacob Excel Programming 2 May 4th 07 12:58 AM
screen position indication? nastech Excel Discussion (Misc queries) 1 August 17th 06 07:55 PM
Autofilter indication when being used Cheese Excel Discussion (Misc queries) 1 July 8th 05 07:18 AM
indication of empty cell haf Excel Worksheet Functions 4 January 12th 05 05:10 PM
time indication bar Jos reulen Excel Programming 0 November 24th 03 10:05 AM


All times are GMT +1. The time now is 01:57 AM.

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

About Us

"It's about Microsoft Excel"