Does anyone know how to open a program using anything other than the "shell" command? I keep getting a runtime error '5' everytime I click the button. It used to function but now I don't know what caused it to create the error.
Any help will be appreciated


VB Code:
  1. Private Sub cmdSchedule_Click()
  2.  
  3. 'Open Task External Scheduler
  4. Shell "C:\Program Files\NCMS\Task Scheduler\Task Scheduler.exe"
  5.  
  6.  
  7. End Sub