Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Working with Linked files

Hello All

I am working in Excel 2003. Scenario is this ... I have a workbook
which has links to 50 other workbooks. All of the workbooks SHOULD
have been recalculated before saving but it appears that this is not
always the case. I need to write some code to do the following:

1. Check the status of the links (vba equivalent of Edit Links
Check Status and grab the "status" property which is either 'unknown',
'ok', 'Warning: Values not updated', or 'Warning: source not
recalculated"). Is there a way of getting the 'status' property
programatically? I can't seem to find a way.
2. If the status from above is not 'OK' then the code opens the
workbook, recalculates it, saves it then closes it. If I can't get
the status above I may have to open, calc, save, close all files so
the macro would be quite slow.
3. Ensure that the open, calc, save and close events are all hidden
from the user. Can I open the files in the background somehow? I
imagine that doing it in the background is quicker anyway.

I already know about Activeworkbook.Linksources, workbook.open,
workbook.save, workbook.close and application.calculate. My main area
for needing help is (a) grabbing the status property, (b) opening
files and working on them in the background and (c) any other hints/
tips on working with linked files in the quickest way possible.

Kind regards

Stuart
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
Linked Files (Source and Dependent files) midcastro Links and Linking in Excel 0 February 19th 11 04:16 PM
Working with multiple files/workbooks cross linked MikeR-Oz New Users to Excel 3 September 16th 08 12:56 AM
HOW TO GET OVER WITH THIS ANNOYING LINKED FILES MSG BOX WHEN I OPEN FILES WHICH HAS LINKS CAPTGNVR Excel Programming 4 February 8th 07 07:13 PM
Linked Formulas have stopped working! Jules Excel Worksheet Functions 0 November 30th 06 05:08 PM
linked cells not working Brjrsw Excel Discussion (Misc queries) 2 September 8th 06 05:34 PM


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