With
MyExcel.Workbooks.Open(
"\\Merger_List.xlsx"
)
With
.Sheets(1)
Dim
Counter
As
Integer
= 0
Dim
strPath
As
String
strPath = ThisWorkbook.Path
For
r = 3 to .Cells(.Rows.Count,3).
End
(Excel.XlDirection.xlUp).Row
Dim
FileName = .Cells(r,3).Value
Dim
PreNum
As
String
PreNum = Format(Text(Counter),
"0000"
)
My.Computer.FileSystem.CopyFile(
"C:\UserFiles\\TestFiles\testFile.txt"
,
"C:\UserFiles\TestFiles2\NewFile.txt"
,
Microsoft.VisualBasic.FileIO.UIOption.AllDialogs,
Microsoft.VisualBasic.FileIO.UICancelOption.DoNothing)
Counter = Counter +100
Next
Counter =0
End
With
End
With