Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 395
Default XL03 suppress 'missing XLA' msg on Workbooks.open

This started in another thread, but that thread got orphaned and I've got a
clearer idea of what is happening now, so reposting in search of additional
help. Thank you all for your continued assistance.

I have a file that I open with UpdateLinks:=0 My goal is to automatically
open this file from a LAN, copy the data (pastespecial/values into my
workbook), then close this book. The intent is to have this fully automated.

However, when opening the file with VBA (see code below) I get a "find file"
type dialog window; it seems to want me to locate an XLA. I'm assuming this
because the formulas in the source workbook seem to refer to an XLA which I
don't
have (and am unlikely to get). The title bar of this dialog window is
"Update Values: HsTbar.xla"

An example of a formula from the sheet:
='C:\Hyperion\SmartView\Bin\HsTbar.xla'!HsGetValue ("CorpHFM","Scenario#"&$C$1&";Year#"&E$12&";Period #"&E$13&";View#"&$C$2&";Entity#"&$A15&";Value#"&$C $4&";Account#"&$B15&";ICP#"&$C$3&";Custom1#"&$C$5& ";Custom2#"&$C$6&";Custom3#"&$C$7&";Custom4#"&$C$8 &"")*2204.6

When I open the file *manually* and say "don't update links", I do not get
this dialog box that is looking for the XLA. When I open the file via VBA
with updatelinks:=0, I do get the dialog box (and it therefore interrupts the
automation until a user clicks cancel).

What additional parameters or settings do I need to use to open a file with
VBA without triggering any sheet updates at all, so that it won't ask for the
xla location?

Many thanks,
Keith

Code:

Application.DisplayAlerts = False
Set twb = Workbooks.Open(FileName:=MyFullFilePath, UpdateLinks:=0,
ReadOnly:=True)
Application.DisplayAlerts = True

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
'C:\programfiles\Add-ins\addinmgr.xla' could not be found Fareez Excel Discussion (Misc queries) 1 February 18th 09 09:38 AM
VBA Workbooks.Open - Suppress File Currupt Message [email protected] Excel Programming 0 October 17th 08 06:55 PM
What am I missing - Workbooks.Open Barb Reinhardt Excel Programming 13 August 14th 08 12:57 PM
Suppress messages/warnings using Workbooks.Open Guy Fawkes Excel Programming 1 May 15th 06 08:57 AM
Excel 2003 Workbooks.Open with CorruptLoad=xlRepairFile fails on Excel 5.0/95 file due to Chart, with Error 1004 Method 'Open' of object 'Workbooks' failed Frank Jones Excel Programming 2 June 15th 04 03:21 AM


All times are GMT +1. The time now is 02:21 PM.

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"