I am in need of help with a macro.
What I am trying to do is rename all files in directory C:\S30\TR\ with the extension of .D01 to .CSV.
I know the macro below is not right, wrote something to get started.
Thanks for taking a look!!
What I am trying to do is rename all files in directory C:\S30\TR\ with the extension of .D01 to .CSV.
I know the macro below is not right, wrote something to get started.
Code:
Dim strSourceFile As String
Dim strSourceDirectory As String
strSourceDirectory = "C:\S30\TR\"
strSourceFile = Dir(strSourceDirectory)
Do While strSourceFile <> ""
strSourceFile = Replace$(strSourceFile, ".D01", ".CSV")
Loop
Thanks for taking a look!!