Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using a variable name as part of a file pathname to open many files

I need to open 76 Excel files one at a time and copy the data on a ta
to a rollup workbook with 76 tabs. Is there a way to build an arra
with the names of the 76 workbooks and then change the pathname usin
the 76 names in the array so I can open each workbook, copy th
information to the rollup workbook, and close the individual workbooks
The workbooks are too large to open all of them and then copy the dat
to the rollup workbook!

TIA!!:

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Using a variable name as part of a file pathname to open many files

Yes this can be done,

use a string variable for the name of the
workbooks.open Filename:=strFileName
''where strFileName is a path and file name of the file
you want to open, then use the activeworkbook and
thisworkbook object to play around with the workbooks and
data.

Keith
www.kjtfs.com

-----Original Message-----
I need to open 76 Excel files one at a time and copy the

data on a tab
to a rollup workbook with 76 tabs. Is there a way to

build an array
with the names of the 76 workbooks and then change the

pathname using
the 76 names in the array so I can open each workbook,

copy the
information to the rollup workbook, and close the

individual workbooks?
The workbooks are too large to open all of them and then

copy the data
to the rollup workbook!

TIA!!:)


---
Message posted from http://www.ExcelForum.com/

.

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
How to create a hyperlink to open a file with part of the name tsraj Excel Worksheet Functions 0 October 26th 09 07:30 PM
can I remove part of a file name (LO) from a group of excel files Geekedersch Excel Discussion (Misc queries) 3 July 26th 07 04:14 AM
Using a variable to represent the pathname in a formula David Jones Excel Discussion (Misc queries) 5 November 24th 06 04:37 AM
OFFICE PROFESSIONAL 2003 W32, part# 269-08393,will not open files Bill Excel Discussion (Misc queries) 1 February 19th 06 10:49 PM
file open via IE hyperlink causes already open files to shrink and tile Marc Setting up and Configuration of Excel 0 May 4th 05 08:13 PM


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