PDA

View Full Version : Saving 100 workbooks automatically



insea
11-08-2007, 05:22 PM
Hello everybody!
I need your help.
I have in C:\Test\..., 100 workbooks (P1, P2, P3,....)
I would like to do a automatic change of the file name of this 100 workbooks
To do this I have a workbook with the 100 names (P1, P2, P3....) in column A and the column B is the name I want to change.
Example.:
Col A Col B

P1 Street 23

Thanks for your help
Insea

TonyJollans
11-08-2007, 11:49 PM
For Each R In Range("A1:B100").Rows
Name "C:\Test\...\" & R.Cells(1) & ".xls" _
As "C:\Test\...\" & R.Cells(2) & ".xls"
Next

insea
11-09-2007, 05:07 PM
Tony,
thanks a lot. It's works perfect
Congratulations to this site.

Regards
Insea