ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Unload a Userform created in VB6 (https://www.excelbanter.com/excel-programming/387798-unload-userform-created-vb6.html)

avi

Unload a Userform created in VB6
 
Hello,

From my VBA code i perform a shell command that causes an exe file

created in VB6 to open a Userform created in VB6.

The UserForm is not recognized in Excel so i don't know hoew to
determine if it is loaded. I need this in order to prevent opening
many sessions of the UserForm

Please help
Avi


Bob Phillips

Unload a Userform created in VB6
 
Why don't you unload it from within the userform itself, when the processing
is done.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"avi" wrote in message
oups.com...
Hello,

From my VBA code i perform a shell command that causes an exe file

created in VB6 to open a Userform created in VB6.

The UserForm is not recognized in Excel so i don't know hoew to
determine if it is loaded. I need this in order to prevent opening
many sessions of the UserForm

Please help
Avi




NickHK

Unload a Userform created in VB6
 
Userform normally refers to those used by VBA, whilst in VB6 it is normally
referred to as a form.
So you are trying to unload a form in your <standard VB6 exe ?
Or something else ?

If you need to communicate with the VB6 part/component, an ActiceX dll or
exe would be more straight forward.

NickHK

"avi" wrote in message
oups.com...
Hello,

From my VBA code i perform a shell command that causes an exe file

created in VB6 to open a Userform created in VB6.

The UserForm is not recognized in Excel so i don't know hoew to
determine if it is loaded. I need this in order to prevent opening
many sessions of the UserForm

Please help
Avi




avi

Unload a Userform created in VB6
 
Hello,

Thanks

The problem is that the Userform is opened from an Excel menu. The
user can forget to close it and may open a new instance (the first UF
is minimized).

The Userform was imported to VB6 from an export from VBA. i don't know
why but it appears in VB6 in a section called Designers and not in the
Form section

As you can guess my knowledge in VB6 is not very good

Avi


Peter T

Unload a Userform created in VB6
 
I recall another thread in which you wondered whether to use an VB exe or a
dll, seems you've gone with an exe, why?

Unless you have a special reason for using an exe, and if you have make it
an ActiveX exe, otherwise probably much easier with a dll.

Indeed you can use a vba type userform in your VB app (as you've found it
gets dropped into Designers), but that doesn't change anything regarding
your current issue.

Regards,
Peter T

"avi" wrote in message
oups.com...
Hello,

Thanks

The problem is that the Userform is opened from an Excel menu. The
user can forget to close it and may open a new instance (the first UF
is minimized).

The Userform was imported to VB6 from an export from VBA. i don't know
why but it appears in VB6 in a section called Designers and not in the
Form section

As you can guess my knowledge in VB6 is not very good

Avi





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

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