Unload a Userform created in VB6

A

avi

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
 
B

Bob Phillips

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)
 
N

NickHK

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
 
A

avi

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
 
P

Peter T

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top