Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2007

Tip: Looking for answers? Try searching our database.

if Error, Pause or Loop

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ca1358 - 29 Nov 2007 19:28 GMT
Is there a way to, If Error then loop back and try again.
This is a live file which is connected to my file and I have it save every
13 seconds but if the live link is saving, it errors out.

'/////////////////////////////////////////////////
Sub UpdateLinks()

ActiveWorkbook.UpdateLink Name:= _
"\\DTCNAS-ILSP002\Tesing\LiveLink.xls" _
, Type:=xlExcelLinks
Range("A1").Select

Call UpdateTime
End Sub

Sub UpdateTime()

Application.OnTime Now + TimeValue("00:00:13"), "UpdateLinks"

End Sub

Signature

ca1358

fumei - 29 Nov 2007 21:11 GMT
Why are you posting this in the Word forum?

Seems it would just need some basic On Error error trapping.

>Is there a way to, If Error then loop back and try again.
>This is a live file which is connected to my file and I have it save every
[quoted text clipped - 16 lines]
>
>End Sub

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.