I have an Outlook for with VB copy in it. I am trying to copy file 1 to file 2. THe files are located on a network drive. This was working until I added the Filecopy line.
Call Excel
Sub cmdExcel_click()
Filecopy “tabsproddatabaseedgarsecuritymastertest.xls”, “tabsproddatabaseedgarsecuritytest.xls”
Set objWSHShell = CreateObject(“WScript.Shell”)
objWSHShell.Run(“excel.exe tabsproddatabaseedgarsecurityTEST.xls “)
end sub
It is giving me a Type Mismatch. Can anyone tell me what I am doing wrong.