Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default Controlling how a second excel file opens

I have an Excel workbook I use to aggregate data from other excel workbooks.
My macros copy data from the secondary workbook and appends the data to the
primary workbook. My question:
Is there the capability to open up secondary workbook without the secondary
workbook executing any of it's macros and not do any calculations?
Is there a better way to pull data from another excel workbook? Links are
not an option.

Thanks,
- Pat


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 411
Default Controlling how a second excel file opens

Hi Pat,

See if this works for you:

http://www.erlandsendata.no/english/...batextimportwb

Dan
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default Controlling how a second excel file opens


Pat,
You could move the Workbook_Open code (secondary workbook)
to an Auto_Open sub in a standard module.
An Auto_Open sub runs when a workbook is opened normally (manually)
but does not run when the workbook is opened via code.
Also, just changing Application.Calculation to manual before opening the
workbook should keep it quiet.

Ron de Bruin (MVP) has some ADO code... http://www.rondebruin.nl/ado.htm
that can be used to extract data from closed workbooks.
I have never had cause to use ADO yet.
--
Jim Cone
Portland, Oregon USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"Dreiding"
wrote in message
I have an Excel workbook I use to aggregate data from other excel workbooks.
My macros copy data from the secondary workbook and appends the data to the
primary workbook. My question:
Is there the capability to open up secondary workbook without the secondary
workbook executing any of it's macros and not do any calculations?
Is there a better way to pull data from another excel workbook? Links are
not an option.
Thanks,
- Pat


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
Excel file opens and opens and opens Wanna Learn Excel Discussion (Misc queries) 1 June 9th 09 11:03 PM
Opening file in Excel 2003 opens multipule instances of same file Ed_B Excel Discussion (Misc queries) 1 June 21st 07 07:10 PM
opening an excel file opens a duplicate file of the same file skm Excel Discussion (Misc queries) 1 December 7th 05 05:52 PM
Controlling VB executable from Excel File Graham Masters[_2_] Excel Programming 5 September 23rd 05 05:42 PM
Double Click .xls file in Explorer opens Excel but no file Kaypee Setting up and Configuration of Excel 3 March 3rd 05 03:45 PM


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