Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default importing tabs/sheets only from the currently open files

I read a number of posts, all providing good hints but not sufficient for my needs.

I have a number of xls files that where the secont tab is aways named in the same way.
Files can be saved in different locations and not all the time all of them require actions (i.e. old versions, when collegues with right forget to archive them).
I would like to:
1) open all files I am interested into
2) run a macro to copy the specific tab name into the file where macro is created, file by file
3) avoids conflicts on namings, since all source tabs have same name

any valuable suggestion is more than appreciated.
tks
s

EggHeadCafe - Software Developer Portal of Choice
DOING STATIC IN C#
http://www.eggheadcafe.com/tutorials...atic-in-c.aspx
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 897
Default importing tabs/sheets only from the currently open files

1) To browse for specific files, check out the
Application.GetOpenFileName Method
2) To copy worksheets from one workbook to another, check out the
Worksheets.Copy method.
3) You could copy the worksheet, then rename it using Sheets.Count + 1
to get a unique number which you can append to the sheet name.

--JP

On Oct 7, 2:06*am, stefano canepa wrote:
I read a number of posts, all providing good hints but *not sufficient for my needs.

I have a number of xls files that where the secont tab is aways named in the same way.
Files can be saved in different locations and not all the time all of them require actions (i.e. old versions, when collegues with right forget to archive them). *
I would like to:
1) open all files I am interested into
2) run a macro to copy the specific tab name into the file where macro is created, file by file
3) avoids conflicts on namings, since all source tabs have same name

any valuable suggestion is more than appreciated.
tks
s

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
Joel - Importing multiple text files to 1 spreadsheet, now importing from excel files Volker Hormuth Excel Programming 7 April 9th 09 06:55 PM
Listing xls files and sheets (excluding Hidden tabs) help [email protected] Excel Programming 2 May 31st 07 07:59 PM
Open dialogue box and importing text files Gazzr Excel Programming 2 February 16th 06 11:29 PM
Importing Tabs Gsurfdude Excel Programming 1 December 9th 05 06:47 PM
Excel 2000 importing huge ASCII files into different sheets Goran Stjepanovic Excel Programming 2 February 25th 04 09:30 AM


All times are GMT +1. The time now is 01:50 AM.

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"