Hi Guys and Gals
I have a problem that is out of my expertise
I have some VBA working fine doing what it needs however the end goal is to copy a file form a network drive to a local drive, however, the local machine i need this on does have excel installed to fire the VBA form task scheduler. does anybody have the knowledge to convert the below into a batch file or something?
I am aware i will need to define the source and destination differently the aim was to make this easier to update but if has to be hard coded then I'll cross that bridge if it needs to change.
Thanks in advance
I have a problem that is out of my expertise
I have some VBA working fine doing what it needs however the end goal is to copy a file form a network drive to a local drive, however, the local machine i need this on does have excel installed to fire the VBA form task scheduler. does anybody have the knowledge to convert the below into a batch file or something?
I am aware i will need to define the source and destination differently the aim was to make this easier to update but if has to be hard coded then I'll cross that bridge if it needs to change.
VBA Code:
Dim source As String
Dim destination As String
source = Worksheets("Admin").Range("D3").Text
destination = Worksheets("Admin").Range("D4").Text
Dim oFSO As Object
Set oFSO = CreateObject("Scripting.FileSystemObject")
Call oFSO.CopyFile(source, destination, False)
Thanks in advance