G
Guest
Hello everyone. I am trying to create a custom dll to show a message box. I
am running into difficulty when I try to call the custom dll function custom
menuitem. Excel gives the messagebox that it caused a serious error and
needs to close.
I have a partial work around in the custommenu xla in thisworkbook object i
use sendkeys to open and exit the vb editor and tis works great. but if I
open an excel file it seems to halt opening the file after I open and close
the vb editor window.
Any insites about this would be greatly appreciated.
Thanks in advance
In the general declaration section I have the following:
Private Declare Sub message Lib "g:\paul\stringsPart2\string2dll.dll" ()
I call this sub from a sub in a module
The sub is as follows:
Private Sub CHKNet()
message
End Sub
The sub in the custom dll is as follows:
Private Sub message()
MsgBox "Can you read this"
End Sub
am running into difficulty when I try to call the custom dll function custom
menuitem. Excel gives the messagebox that it caused a serious error and
needs to close.
I have a partial work around in the custommenu xla in thisworkbook object i
use sendkeys to open and exit the vb editor and tis works great. but if I
open an excel file it seems to halt opening the file after I open and close
the vb editor window.
Any insites about this would be greatly appreciated.
Thanks in advance
In the general declaration section I have the following:
Private Declare Sub message Lib "g:\paul\stringsPart2\string2dll.dll" ()
I call this sub from a sub in a module
The sub is as follows:
Private Sub CHKNet()
message
End Sub
The sub in the custom dll is as follows:
Private Sub message()
MsgBox "Can you read this"
End Sub