importing tabs/sheets only from the currently open files

S

stefano canepa

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/tutorial...4de0-9997-64005ab433c8/doing-static-in-c.aspx
 
J

JP

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top