Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,670
Default How to update all links before re-calculation for macro?

I have a macro to update the links for 5 worksheets to internet site,
whenever I run this macro, which will automatically update the links for all
worksheets.
After one link is updated, it will re-calculate all worksheet before
updating the second link. Would it be possible that all worksheets will be
re-calculated only after all links are updated.
Does anyone have any suggestions?
Thanks in advance for any suggestions
Eric
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 896
Default How to update all links before re-calculation for macro?

I use the following (if there is not so many cells with hyperlinks/
formulae)

in each worksheet define a named range, named e.g. Sheet1!link, Sheet2!
link etc.

then use the following macro

Sub Aktualize()

For Each ws In ActiveWorkbook.Worksheets
ws.Activate
Range(ws.Name & "!" & "link").Select
For Each cell In Selection
If cell.HasFormula Then
cell.Formula = cell.Formula
End If
Next cell
Next ws

End Sub


if there are numerous hyperlinks then I cannot see other solution than
to parse each cell in UsedRange, check whether is HasFormula etc.





On 12 Gru, 17:28, Eric wrote:
I have a macro to update the links for 5 worksheets to internet site,
whenever I run this macro, which will automatically update the links for all
worksheets.
After one link is updated, it will re-calculate all worksheet before
updating the second link. *Would it be possible that all worksheets will be
re-calculated only after all links are updated.
Does anyone have any suggestions?
Thanks in advance for any suggestions
Eric


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
Using Macro to update Links Thom Ernest Excel Programming 1 September 5th 06 04:37 PM
macro for update links damiand_1982[_5_] Excel Programming 1 August 15th 06 01:49 PM
A macro to update links [email protected] Excel Programming 3 August 8th 06 05:02 PM
Update links macro Spike Excel Programming 5 April 21st 06 08:58 PM
Macro after Update of Links Mr.T[_2_] Excel Programming 0 November 22nd 05 10:16 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"