Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default Why macro cannot refreshall?

Hi Eric,

Your last post is the first time in this thread that you have mentioned
Internet. Your initial code sample gave no indication that you wanted link
updates from the internet and that is probably the reason you are not getting
the answers you require.

I now suggest that you post the question again with the heading "How to
update Excel workbook links via the internet" and include your code for
accessing these workbooks via the internet and hopefully you will get answers
from those that have experience with these problems. (You should be able to
blank out actual internet links/addresses with asterisks or something for
security purposes.)


--
Regards,

OssieMac


"Eric" wrote:

Thank you very much for suggestions
I have tried it, the worksheet performs recalucation on all worksheets
without refreshing any external links from internet. On this workbook, each
sheet will update all imported links automatically, once this file is opened.
After I add following code, there is no internet access signals and the text
information does not update at all, and only perform recalculation functions.
Do you have any suggestions on what is going on?
Thank everyone very much for any suggestions
Eric

"OssieMac" wrote:

Hi Eric,

My apologies. I thought you would know how to translate it into your code.
Here is your code with the update links code included.

As I said before I will be interested in how it goes.

Public Sub UpdatingLists2()

Dim WkbkName As String
Dim wkbk As Workbook
On Error Resume Next

WkbkName = "D:\Documents\file.xls"

Set wkbk = Nothing
On Error Resume Next

Set wkbk = Workbooks.Open(Filename:=WkbkName, UpdateLinks:=3)
On Error GoTo 0

wkbk.UpdateLink Name:=wkbk.LinkSources

wkbk.Close savechanges:=True

--
Regards,

OssieMac

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
ActiveWorkbook.RefreshAll teepee[_3_] Excel Programming 0 November 11th 08 02:11 PM
how do i get the "RefreshAll" method to work in a macro sloan[_2_] Excel Programming 4 August 2nd 07 08:24 PM
ActiveWorkbook.RefreshAll toosie Excel Programming 1 February 16th 05 09:55 AM
Force Macro to wait till Refreshall is done NCSU_madman[_2_] Excel Programming 0 November 10th 04 05:36 PM
Force Macro to wait till Refreshall is done NCSU_madman Excel Programming 3 November 10th 04 04:39 PM


All times are GMT +1. The time now is 07:24 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"