controls and dynamic events

Y

yita

Hi all, I need to do a routine in Excel VBA which allows to
dynamically create controls and then delete them. Thanks
 
A

Andrew

Hi all, I need to do a routine in Excel VBA which allows to
dynamically create controls and then delete them. Thanks

Would it be sufficient to simply activate or inactivate existing
controls? That is fairly easy to do. It is also to change the format
of the controls.

I'm going to give this a try...
Es sufficiente para que los elementos aparacen y desaparacen ? Esto
es facil. Y ademas es facil para cambiar el formato del controles.
 
N

norie

Would it be sufficient to simply activate or inactivate existing
controls?  That is fairly easy to do.  It is also to change the format
of the controls.

I'm going to give this a try...
Es sufficiente para que los elementos aparacen y desaparacen ?  Esto
es facil.  Y ademas es facil para cambiar el formato del controles.

What type of controls and why do you need to dynamically create and
delete them?

It probably wouldn't be too hard to do the basic part(s) creating and
deleting, but to actually
have the controls do anything might be a different matter.

Of course that would depend on what type of controls they are and what
you want to do with them.
 
A

Andrew

What type of controls and why do you need to dynamically create and
delete them?

It probably wouldn't be too hard to do the basic part(s) creating and
deleting, but to actually
have the controls do anything might be a different matter.

Of course that would depend on what type of controls they are and what
you want to do with them.

I think the only way to deal with this would be to make a bunch of
control ahead of time, and then activate or deactivate them as
needed. This would be easy but time consuming.
 
K

Ken McLennan

Hi all, I need to do a routine in Excel VBA which allows to dynamically
create controls and then delete them. Thanks

John Walkenbach explains precisely how to do this in Excel 2003 Power
Programming With VBA. He's published later versions since then (2007 &
2010) which may well include the technique, but I've not read them so
can't verify.

If you can find a copy it will demonstrate all you need.

See ya
Ken McLennan
Qld, Australia
 

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