ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Error 13 (https://www.excelbanter.com/excel-programming/401214-error-13-a.html)

Arne Hegefors

Error 13
 
Hi! I have quite a big code that calls other programs and reads and posts
data. I have not written all of the code, which is a problem. At the moment I
get Error 13 at a place. Can someone give me clue of what Error 13 might mean
in this context? Any help appreciated! Thanks

'start the bat file
lTaskID = RunBatFile
'get the process handle
hProc = OpenProcess(ACCESS_TYPE, False, lTaskID)
If Err < 0 Then
MsgBox Err
Exit Sub
End If

FSt1

Error 13
 
hi
wild guessing here because you really haven't supplied enough info.
but error 13....type mismatch.
this usually occurs when you have messed up your data types.(dims usually)
and are trying to do something that don't work ie add a letter(string) to a
number(long) or something similar. you have some unidentfied stuff in your
code like ItaskID and RunBatFile. what are thoses?
go back and check your dims and data types and make sure that you are not
trying to matching different data types.

my thoughts
regards
FSt1

"Arne Hegefors" wrote:

Hi! I have quite a big code that calls other programs and reads and posts
data. I have not written all of the code, which is a problem. At the moment I
get Error 13 at a place. Can someone give me clue of what Error 13 might mean
in this context? Any help appreciated! Thanks

'start the bat file
lTaskID = RunBatFile
'get the process handle
hProc = OpenProcess(ACCESS_TYPE, False, lTaskID)
If Err < 0 Then
MsgBox Err
Exit Sub
End If



All times are GMT +1. The time now is 09:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com