Hi,
I have a working macro that open one file at a time (looks like "Alpha-111".
I would like to add 3 "For" Loops with three Indexes to name the numbers-part of that file name, since I have plethora of files like this one.
Do you find it Too Simple? well, I'll try to come out with something more chalanging next time...
I would appreciate any help.
Here is the beginning of this Macro:
Workbooks.OpenText Filename:= _
"C:\Documents and Settings\physics\My Documents\Ran\300-300-02-5E-6\isaOP1-300-300-LU-5E-6-323" _
, Origin:=xlWindows, StartRow:=1, DataType:=xlFixedWidth, FieldInfo:= _
Array(Array(0, 1), Array(6, 1), Array(18, 1))
Workbooks.OpenText Filename:= _
"C:\Documents and Settings\physics\My Documents\Ran\300-300-02-5E-6\isaOP1-300-300-LU-02-323" _
, Origin:=xlWindows, StartRow:=1, DataType:=xlFixedWidth, FieldInfo:= _
Array(Array(0, 1), Array(6, 1), Array(18, 1))
Windows("isaOP1-300-300-LU-5E-6-323".Activate
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\physics\My Documents\Ran\300-300-02-5E-6\isaOP1-300-300-LU-323-diff.xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _he beginning of this macro
I have a working macro that open one file at a time (looks like "Alpha-111".
I would like to add 3 "For" Loops with three Indexes to name the numbers-part of that file name, since I have plethora of files like this one.
Do you find it Too Simple? well, I'll try to come out with something more chalanging next time...
I would appreciate any help.
Here is the beginning of this Macro:
Workbooks.OpenText Filename:= _
"C:\Documents and Settings\physics\My Documents\Ran\300-300-02-5E-6\isaOP1-300-300-LU-5E-6-323" _
, Origin:=xlWindows, StartRow:=1, DataType:=xlFixedWidth, FieldInfo:= _
Array(Array(0, 1), Array(6, 1), Array(18, 1))
Workbooks.OpenText Filename:= _
"C:\Documents and Settings\physics\My Documents\Ran\300-300-02-5E-6\isaOP1-300-300-LU-02-323" _
, Origin:=xlWindows, StartRow:=1, DataType:=xlFixedWidth, FieldInfo:= _
Array(Array(0, 1), Array(6, 1), Array(18, 1))
Windows("isaOP1-300-300-LU-5E-6-323".Activate
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\physics\My Documents\Ran\300-300-02-5E-6\isaOP1-300-300-LU-323-diff.xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _he beginning of this macro