PC Review


Reply
Thread Tools Rate Thread

Controlling how a second excel file opens

 
 
Dreiding
Guest
Posts: n/a
 
      8th May 2008
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 With Quote
 
 
 
 
dan dungan
Guest
Posts: n/a
 
      9th May 2008
Hi Pat,

See if this works for you:

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

Dan
 
Reply With Quote
 
Jim Cone
Guest
Posts: n/a
 
      9th May 2008

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" <(E-Mail Removed)>
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 With Quote
 
Dreiding
Guest
Posts: n/a
 
      15th May 2008
Thanks, The ADO approach is exactly what' I need.

- Pat

"Jim Cone" wrote:

>
> 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" <(E-Mail Removed)>
> 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Controlling which app opens a hyperlink image file? SharoneM Microsoft Access 6 8th Jul 2009 07:13 PM
Excel file opens and opens and opens Wanna Learn Microsoft Excel Misc 1 9th Jun 2009 11:03 PM
Controlling VB executable from Excel File =?Utf-8?B?R3JhaGFtIE1hc3RlcnM=?= Microsoft Excel Programming 5 23rd Sep 2005 05:42 PM
Controlling an Excel File =?Utf-8?B?TS4gR3JpZmZpdGg=?= Microsoft Access 1 4th May 2005 03:40 AM
File opens when Excel opens ChuckW Microsoft Excel Misc 3 23rd Sep 2004 12:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:03 AM.