Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. -- Regards, Tom Ogilvy "flyboy0204" wrote in message ... 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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. "Tom Ogilvy" wrote: 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. -- Regards, Tom Ogilvy "flyboy0204" wrote in message ... 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 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 "Tom Ogilvy" wrote in message ... 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. -- Regards, Tom Ogilvy "flyboy0204" wrote in message ... 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
macro problem for a noob lol | Excel Discussion (Misc queries) | |||
Not-so-noob | Excel Programming | |||
Noob question | New Users to Excel | |||
Noob help | Excel Worksheet Functions | |||
VBA noob help with an IF | Excel Programming |