04-07-2009, 10:09 AM
Hello,
I have used & operator for concatenation instead of + .But still after executing th below mentioned lines I am getting a "Type mismatch error for EXEC"
GrabRunner = "C:\GrabRunner\GrabRunner.exe"
GrabWindowText = "Notepad"
GrabBitmapSave = "C:\ Bitmap.bmp"
Exec(GrabRunner&" /WINDOWTEXT=" &GrabWindowText& " /SAVE=" &GrabBitmapSave& " /PRINT")
I have used & operator for concatenation instead of + .But still after executing th below mentioned lines I am getting a "Type mismatch error for EXEC"
GrabRunner = "C:\GrabRunner\GrabRunner.exe"
GrabWindowText = "Notepad"
GrabBitmapSave = "C:\ Bitmap.bmp"
Exec(GrabRunner&" /WINDOWTEXT=" &GrabWindowText& " /SAVE=" &GrabBitmapSave& " /PRINT")