#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 191
Default Excel files

I have two excel files. How do I write a procedure in one file that will
open the other file and be able to access the data in that file?
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 192
Default Excel files

Sub Open()

Workbooks.Open Filename:="File Path here such as C:\MyDocuments\File.xls"

End Sub

You can then call information from the open file.

"ranswrt" wrote:

I have two excel files. How do I write a procedure in one file that will
open the other file and be able to access the data in that file?
Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 191
Default Excel files

How would I copy a range of cells from one excel file to another?
Thanks

"StumpedAgain" wrote:

Sub Open()

Workbooks.Open Filename:="File Path here such as C:\MyDocuments\File.xls"

End Sub

You can then call information from the open file.

"ranswrt" wrote:

I have two excel files. How do I write a procedure in one file that will
open the other file and be able to access the data in that file?
Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Excel files

See Ron de Bruin's CopyPasteMerge section for retrieving data from
multi-workbooks and multi-worksheets.

http://www.rondebruin.nl/tips.htm


Gord Dibben MS Excel MVP

On Mon, 23 Jun 2008 16:45:01 -0700, ranswrt
wrote:

How would I copy a range of cells from one excel file to another?
Thanks

"StumpedAgain" wrote:

Sub Open()

Workbooks.Open Filename:="File Path here such as C:\MyDocuments\File.xls"

End Sub

You can then call information from the open file.

"ranswrt" wrote:

I have two excel files. How do I write a procedure in one file that will
open the other file and be able to access the data in that file?
Thanks


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
Navigating to Excel files over network slow, but not Word files Newbie123 Excel Discussion (Misc queries) 1 December 2nd 09 01:18 PM
Excel 2007 tmp files filling up drive with XLSM files Jim Excel Worksheet Functions 0 September 12th 08 03:31 PM
How to change default Open/Files of Type to "Microsoft Excel Files Tammy Excel Discussion (Misc queries) 2 January 14th 08 11:06 PM
how to default WritePassword under excel workbook property for any files as long as those files are the offsprings of the parent file George Excel Programming 0 October 5th 06 04:14 PM
Drive Erased, got Files back but only excel files scrambled, help. Shawnky Excel Discussion (Misc queries) 0 May 8th 06 07:26 PM


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