Sub OnCreated(ByVal source As Object, ByVal e As System.IO.FileSystemEventArgs)
Dim programName As String = "notepad"
Dim p() As process = process.GetProcessesByName(programName)
If p.Length > 0 Then
If IO.File.Exists("C:\Program Files\Portland Software\Primopost\scanner.exe") Then
System.Diagnostics.Process.Start("C:\Program Files\Portland Software\Primopost\scanner.exe")
The problem i have is that process.GetProcessesByName(programName) is not a member of process
Can any one tell me what i need to do to sort it out
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code.