Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have to duplicate a file about 1500 times with unique names. I am
trying to write a macro that will automatically save the file as excel(X).xls where (X) is auto generated for as many times as I need. I am new to basic but what I have cobbled together from different posts is ... Dim X As Long Dim sFilename As String For X = 1 To 1500 With ActiveWorkbook.(X) sFilename = "http://intranet/deptSales/excel" & CStr(X) & ".xls" ActiveWorkbook.SaveAs End With Next If someone wouldn't mind telling me what have I got wrong? Thanks for the help, Steve |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
split post code (zip code) out of cell that includes full address | Excel Discussion (Misc queries) | |||
Code to conditional format all black after date specified in code? | Excel Discussion (Misc queries) | |||
Drop Down/List w/Code and Definition, only code entered when selec | Excel Worksheet Functions | |||
stubborn Excel crash when editing code with code, one solution | Excel Programming | |||
VBA code delete code but ask for password and unlock VBA protection | Excel Programming |