Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default Code to update links every 30 seconds

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default Code to update links every 30 seconds

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" 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
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
Links to Update every 10 seconds... Ozgur Pars[_2_] Excel Programming 2 February 4th 08 02:27 PM
Update links box gives Continue or Edit Links dialog KarenF Excel Discussion (Misc queries) 0 May 18th 07 01:17 PM
code needed to update links David Excel Programming 0 September 8th 06 10:02 PM
Suppress Update Links dialog AND don't update links Paul Martin Excel Programming 3 August 3rd 06 01:14 AM
Any way to update links tru VBA code? nrage21[_47_] Excel Programming 1 March 5th 04 05:32 PM


All times are GMT +1. The time now is 04:44 PM.

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"