LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 661
Default Custom dll troubles

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


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
hyperlink troubles jw4774 Excel Discussion (Misc queries) 1 March 29th 10 02:27 PM
Troubles Jonas Krogh Excel Discussion (Misc queries) 1 October 22nd 09 11:14 AM
Formula troubles Excluxe Excel Discussion (Misc queries) 6 July 16th 07 04:16 PM
COM Add-in Troubles Howard Excel Discussion (Misc queries) 0 May 22nd 07 01:59 PM
IF troubles JG Excel Worksheet Functions 6 December 24th 06 04:58 AM


All times are GMT +1. The time now is 09:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"