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 / Excel / Programming / January 2006

Tip: Looking for answers? Try searching our database.

I need a simple macro but im a noob.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
flyboy0204 - 20 Jan 2006 22:09 GMT
I need what I think would be a simple macro to an advanced user.  It needs to
start when the book is opened and update all external links (paste specials)
every 20 secconds.  I have no idea what commands are needed to do this and
have no idea where to look for information to make it myself.  Im using excel
2003.  Please help.

Thank you,
Flyboy
Tom Ogilvy - 20 Jan 2006 23:09 GMT
See Chip Pearson's page on Application.OnTime

http://www.cpearson.com/excel/ontime.htm

from help on UpdateLink:

This example updates all links in the active workbook.

ActiveWorkbook.UpdateLink Name:=ActiveWorkbook.LinkSources

I don't see what role pastespecial has to play.  Perhaps you could use the
macro recorder to figure out that code.

Signature

Regards,
Tom Ogilvy

> I need what I think would be a simple macro to an advanced user.  It needs to
> start when the book is opened and update all external links (paste specials)
[quoted text clipped - 4 lines]
> Thank you,
> Flyboy
flyboy0204 - 20 Jan 2006 23:18 GMT
I just included the little paste special line so you would know how I created
my external links.  I was not sure if the way I made the external links made
a difference.

Thank you for the help Tom.

> See Chip Pearson's page on Application.OnTime
>
[quoted text clipped - 20 lines]
> > Thank you,
> > Flyboy
scooper - 21 Jan 2006 04:20 GMT
The problem with paste special occurs because you have used the Update.Links
method in the sheet.activate event.
Had same problem last week. I took Update.Link out of the macro and it
returned to normal.
scooper

> See Chip Pearson's page on Application.OnTime
>
[quoted text clipped - 22 lines]
>> Thank you,
>> Flyboy
 
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.