my code is as follows
I have chosen the run code option in switchboard items and i typed in "MergeReportData" as the function name, however when i click the switchboard command button an error occurs
"There was an error executing the command"
does anybody have any ideas?
Code:
Public Function MergeReportData()
Dim strPath1 As String
Dim strPath2 As String
strPath1 = "P:\Apps\32BitWin\Office2000\PFiles\MSOffice\Office\WINWORD.EXE"
strPath2 = "N:\MyWork\ASComp\ASCoursework\rawCompanyOverOneYear.doc"
Shell strPath1 & " " & strPath2, vbNormalFocus
End Function
I have chosen the run code option in switchboard items and i typed in "MergeReportData" as the function name, however when i click the switchboard command button an error occurs
"There was an error executing the command"
does anybody have any ideas?