Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Deactivate then Reactivate UpdateLinks

I have a worksheet which I have linked to several other workbooks (20+). When
opening the file, it takes 20 secs or so to update all the links at once
which is acceptable.

I am using VBA to edit each cell's formula in order to read from one set of
linked tabs to another. (see example)

A = Range("D5")
B = Range("H3")
C = A & "'!"
D = B & "'!"

Range("D8:V50").Select
Selection.Replace What:=C, Replacement:=D, LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
Range("D5").Select

This works fine when there are just a few cells, however since the link is
updated as each cell is edited, the more cells = more time to update. Right
now it can take 15 min or more to update.

Question - can the updating of the links be 'turned off' so the edit and
replace can take place, then restored allowing for the cells to update all at
once simular to when the file is first updated at open?

Thanks in advance for any tips...

- -TB- -

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Deactivate then Reactivate UpdateLinks

Have you tried setting calculation to manual

Just a thought. I don't know if it will help or not.

--
Regards,
Tom Ogilvy



"TOMB" wrote in message
...
I have a worksheet which I have linked to several other workbooks (20+).

When
opening the file, it takes 20 secs or so to update all the links at once
which is acceptable.

I am using VBA to edit each cell's formula in order to read from one set

of
linked tabs to another. (see example)

A = Range("D5")
B = Range("H3")
C = A & "'!"
D = B & "'!"

Range("D8:V50").Select
Selection.Replace What:=C, Replacement:=D, LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
Range("D5").Select

This works fine when there are just a few cells, however since the link is
updated as each cell is edited, the more cells = more time to update.

Right
now it can take 15 min or more to update.

Question - can the updating of the links be 'turned off' so the edit and
replace can take place, then restored allowing for the cells to update all

at
once simular to when the file is first updated at open?

Thanks in advance for any tips...

- -TB- -



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Deactivate then Reactivate UpdateLinks

Thanks for the reply and yes I tried that, both in tools/options and by
placing it in the proceedure. Also, screenupdating=false do not result in
reduced time to run.


"Tom Ogilvy" wrote:

Have you tried setting calculation to manual

Just a thought. I don't know if it will help or not.

--
Regards,
Tom Ogilvy



"TOMB" wrote in message
...
I have a worksheet which I have linked to several other workbooks (20+).

When
opening the file, it takes 20 secs or so to update all the links at once
which is acceptable.

I am using VBA to edit each cell's formula in order to read from one set

of
linked tabs to another. (see example)

A = Range("D5")
B = Range("H3")
C = A & "'!"
D = B & "'!"

Range("D8:V50").Select
Selection.Replace What:=C, Replacement:=D, LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
Range("D5").Select

This works fine when there are just a few cells, however since the link is
updated as each cell is edited, the more cells = more time to update.

Right
now it can take 15 min or more to update.

Question - can the updating of the links be 'turned off' so the edit and
replace can take place, then restored allowing for the cells to update all

at
once simular to when the file is first updated at open?

Thanks in advance for any tips...

- -TB- -




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
Deactivate a macro when used and reactivate again Ber Excel Discussion (Misc queries) 1 April 23rd 10 04:35 PM
reactivate DialogBox oldLearner57 Excel Discussion (Misc queries) 1 September 15th 08 01:02 AM
UpdateLinks Howard Kaikow Excel Programming 8 September 26th 05 03:27 PM
Help with updatelinks:=3 etc PLEASE Mick[_3_] Excel Programming 3 August 7th 04 03:51 PM
Updatelinks Mick Southam Excel Programming 0 August 3rd 04 04:01 PM


All times are GMT +1. The time now is 02:56 AM.

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"