PC Review


Reply
Thread Tools Rate Thread

Code to update links every 30 seconds

 
 
ordnance1
Guest
Posts: n/a
 
      25th Mar 2010
I have a Vacation Calendar which I maintain for a workgroup of about 180
people. Only a couple of people have access to the Vacation Calendar
workbook itself. I have created a slave document which has formulas linking
to each cell on the Master Document. This slave is accessible to all
employees, on 3 computers located in the work area. Each time the slave
document is opened the links are updated and the user see's the most up to
date calendar.

My problem is that I have no way to ensure that the slave document is closed
after each user has viewed it, so it could sit open for hours, and the next
user might not be viewing the most up to date calendar.

So what I am hoping is the there might be a way using code, to force the
Updating of the Values every 30 seconds.


The code can be seen below. What I do not know is how to get it to run every
30 seconds.


ActiveWorkbook.UpdateLink Name:= _
"\\Pats-PC\Vacation\Dispatch\Paratransit\Vacation\New
Vacation.xlsm", Type:= _
xlExcelLinks


 
Reply With Quote
 
 
 
 
AB
Guest
Posts: n/a
 
      25th Mar 2010
check out:
Application.OnTime MyTimehere, MySubHere

Can google for Chip Pearsons site - he's got brilliant adivses/samples
on everything including ontime.


On Mar 25, 6:39*am, "ordnance1" <ordnan...@comcast.net> wrote:
> I have a Vacation Calendar which I maintain for a workgroup of about 180
> people. Only a couple of people have access to the Vacation Calendar
> workbook itself. I have created a slave document which has formulas linking
> to each cell on the Master Document. This slave is accessible to all
> employees, on 3 computers located in the work area. Each time the slave
> document is opened the links are updated and the user see's the most up to
> date calendar.
>
> My problem is that I have no way to ensure that the slave document is closed
> after each user has viewed it, so it could sit open for hours, and the next
> user might not be viewing the most up to date calendar.
>
> So what I am hoping is the there might be a way using code, to force the
> Updating of the Values every 30 seconds.
>
> The code can be seen below. What I do not know is how to get it to run every
> 30 seconds.
>
> * * ActiveWorkbook.UpdateLink Name:= _
> * * * * "\\Pats-PC\Vacation\Dispatch\Paratransit\Vacation\New
> Vacation.xlsm", Type:= _
> * * * * xlExcelLinks


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Links to Update every 10 seconds... Ozgur Pars Microsoft Excel Programming 2 4th Feb 2008 02:27 PM
code needed to update links David Microsoft Excel Programming 3 8th Sep 2006 10:02 PM
Links on some web pages open then close after a few seconds forte agent Windows XP Networking 2 30th Sep 2004 05:42 PM
Links disappear after a few seconds JSACK Windows XP Internet Explorer 1 11th Jun 2004 01:34 PM
Any way to update links tru VBA code? nrage21 Microsoft Excel Programming 1 5th Mar 2004 05:32 PM


Features
 

Advertising
 

Newsgroups
 


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