PC Review


Reply
Thread Tools Rate Thread

controls and dynamic events

 
 
yita
Guest
Posts: n/a
 
      15th Nov 2010
Hi all, I need to do a routine in Excel VBA which allows to
dynamically create controls and then delete them. Thanks
 
Reply With Quote
 
 
 
 
Andrew
Guest
Posts: n/a
 
      16th Nov 2010
On Nov 15, 3:31*pm, yita <orlando.valdene...@gmail.com> wrote:
> 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.
 
Reply With Quote
 
norie
Guest
Posts: n/a
 
      17th Nov 2010
On Nov 16, 1:23*pm, Andrew <andrewkgent...@gmail.com> wrote:
> On Nov 15, 3:31*pm, yita <orlando.valdene...@gmail.com> wrote:
>
> > 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.


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.
 
Reply With Quote
 
Andrew
Guest
Posts: n/a
 
      17th Nov 2010
On Nov 17, 6:02*am, norie <norie.mace...@tiscali.co.uk> wrote:
> On Nov 16, 1:23*pm, Andrew <andrewkgent...@gmail.com> wrote:
>
> > On Nov 15, 3:31*pm, yita <orlando.valdene...@gmail.com> wrote:

>
> > > 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.

>
> 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.
 
Reply With Quote
 
Ken McLennan
Guest
Posts: n/a
 
      20th Nov 2010
On Mon, 15 Nov 2010 14:31:33 -0800, yita wrote:

> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Events for dynamic controls Tom Microsoft ASP .NET 1 12th Dec 2008 02:47 PM
Dynamic Events from Dynamic Controls on a User Control - Guess What? Broken! mytestemailaccount@gmail.com Microsoft ASP .NET 5 23rd Mar 2005 05:06 PM
URGENT: Dynamic controls and dynamic events Mustafa Rabie Microsoft C# .NET 0 22nd Jul 2004 11:35 AM
Dynamic Controls and their events Michael Ramey Microsoft ASP .NET 0 5th Feb 2004 09:27 PM
Dynamic controls & events hybrid Microsoft ASP .NET 1 24th Oct 2003 05:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:06 AM.