Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm using the MSComm function to communicate with a microprocessor. Everything works fine except for one thing: at the end of my MSComm_OnComm() sub, I prompt a simple message box, and after that message box, I want to close the form (which has the MSComm control on it). Whenever I include the Unload userform line after the message box line, I get an error (actually, the entire VB shuts down and an error log is created). Of course when I don't use Unload userform, everything works fine. The microprocessor is not sending any data at the time either. It seems the error is occuring because the userform is closing before the MSComm control has stopped. What's going on here? Any help would be appreciated. Thanks. Sunny |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Not Unloading a UserForm | Excel Programming | |||
Userform activate event question | Excel Programming | |||
MSCOMM | Excel Programming | |||
Passing ARGUMENTS between event procedures of a USERFORM | Excel Programming | |||
Loading MSComm.vbx into Excel VB | Excel Programming |