Excel Automatically Update the linked document from Mr Excel



 FAQFAQ
   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   StatisticsStatistics 
 RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Online StoreOnline Store

MrExcel Message Board Forum Index -> Excel Questions

Automatically Update the linked document
Post new topic   Reply to topic
Last Thread | Next Thread  >   Printable version
  Author    Thread

pickache
Welcome to the Board


Joined: 20 Apr 2004
Posts: 2

Flag: Blank

Status: Offline

 Reply with quote  

Automatically Update the linked document

Hi everyone,

I m quite a beginner in VBA and I was wondering if any of you can help me.

I v created a macro in excel to acess other excel files. when I launch my macro it then access the files to retreive the data needed.
Those files are linked to other files and then I have the excel prompt asking if I want to update or not these links.

Do you by any chance know a way to automatically answer yes (or no) to this and then avoiding the prompt.
Its a quite important matter cuz I cant do any modification on the second level files (the ones open with my macro).

Hope its clear enought :-p (sorry if not icon_confused.gif )

Thanks

Post Tue Apr 20, 2004 4:19 pm 
 View user's profile Send private message

firefytr
Board Master
Board Master


Joined: 09 Dec 2003
Posts: 2283
Location: Boardman, OR
Flag: Usa

Status: Offline

 Reply with quote  

hiya pickache, welcome to the board!

you must set the files (individually i believe). Tools -> Options -> Calculation (tab) -> Workbook options -> ensure 'Update remote references' & 'Save external link values' are both checked. that should do ya!
_________________
Regards,
Zack

vbax!

Post Wed Apr 21, 2004 5:30 am 
 View user's profile Send private message Yahoo Messenger

psitaram
Board Master


Joined: 24 Jun 2003
Posts: 381

Flag: India

Status: Offline

 Reply with quote  

If you are using the Workbooks.Open method, the UpdateLinks argument can be set to 0:

Workbooks.Open FileName:="ABC.xls", UpdateLinks:=0
_________________
Sitaram

Post Wed Apr 21, 2004 6:08 am 
 View user's profile Send private message
  Display posts from previous:      

MrExcel Message Board Forum Index -> Excel Questions


Forum Jump:
Jump to:  

Post new topic   Reply to topic
Page 1 of 1



Add To Favorites

 


Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB: 2.0.4 © 2001 phpBB Group

Need help posting your first question? Read how to post

Need extra help ? Couldn't get the answer you needed ? Get a free quote from our Consulting Team

Download Colo's HTML Maker utility for displaying your Excel Worksheet on the board.

Download VB HTML Maker to post your code on the board


Check out our new index to 485 Excel Articles.


Return to MrExcel Consulting

All contents Copyright 1998-2004 by MrExcel.com
If you believe information posted here is from your copyrighted source, notify us per the Terms of Use
Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.