PC Review


Reply
Thread Tools Rate Thread

Constant execution of ListBox.Click

 
 
Curious George
Guest
Posts: n/a
 
      18th Nov 2008
How do I constantly make events fire, like ListBox.Click subroutine.
Currently I can run the result only by executing the macro run button
thingie. Cant I make the VBA work all the time without pressing any
buttons to run the code?
 
Reply With Quote
 
 
 
 
Susan
Guest
Posts: n/a
 
      18th Nov 2008
under what conditions do you want it to fire? what event would
trigger the code?
is the listbox in the worksheet, or is it in a userform?
yes, you can probably do what you want, but you have to give it some
parameters. i don't know if you'd need worksheet_change or
worksheet_selectionchange. answer the questions and maybe me (or
somebody else) can figure it out for you.

susan


On Nov 18, 3:03*pm, Curious George <digin...@luukku.com> wrote:
> How do I constantly make events fire, like ListBox.Click subroutine.
> Currently I can run the result only by executing the macro run button
> thingie. Cant I make the VBA work all the time without pressing any
> buttons to run the code?


 
Reply With Quote
 
Harald Staff
Guest
Posts: n/a
 
      18th Nov 2008
Don't multipost.

"Curious George" <(E-Mail Removed)> wrote in message
news:UcFUk.93922$_(E-Mail Removed)...
> How do I constantly make events fire, like ListBox.Click subroutine.
> Currently I can run the result only by executing the macro run button
> thingie. Cant I make the VBA work all the time without pressing any
> buttons to run the code?


 
Reply With Quote
 
Curious George
Guest
Posts: n/a
 
      19th Nov 2008
Susan wrote:
> under what conditions do you want it to fire? what event would
> trigger the code?
> is the listbox in the worksheet, or is it in a userform?
> yes, you can probably do what you want, but you have to give it some
> parameters. i don't know if you'd need worksheet_change or
> worksheet_selectionchange. answer the questions and maybe me (or
> somebody else) can figure it out for you.
>
> susan
>
>
> On Nov 18, 3:03 pm, Curious George <digin...@luukku.com> wrote:
>> How do I constantly make events fire, like ListBox.Click subroutine.
>> Currently I can run the result only by executing the macro run button
>> thingie. Cant I make the VBA work all the time without pressing any
>> buttons to run the code?

>


Yes, I am using worksheet since userforms are way too complicated.
 
Reply With Quote
 
Susan
Guest
Posts: n/a
 
      19th Nov 2008
and the rest of the questions?
i can't help you unless you help me.
susan


On Nov 19, 12:20*am, Curious George <digin...@luukku.com> wrote:
> Susan wrote:
> > under what conditions do you want it to fire? *what event would
> > trigger the code?
> > is the listbox in the worksheet, or is it in a userform?
> > yes, you can probably do what you want, but you have to give it some
> > parameters. *i don't know if you'd need worksheet_change or
> > worksheet_selectionchange. *answer the questions and maybe me (or
> > somebody else) can figure it out for you.
> >
> > susan

>
> > On Nov 18, 3:03 pm, Curious George <digin...@luukku.com> wrote:
> >> How do I constantly make events fire, like ListBox.Click subroutine.
> >> Currently I can run the result only by executing the macro run button
> >> thingie. Cant I make the VBA work all the time without pressing any
> >> buttons to run the code?

>
> Yes, I am using worksheet since userforms are way too complicated.- Hide quoted text -
>
> - Show quoted text -


 
Reply With Quote
 
Curious George
Guest
Posts: n/a
 
      20th Nov 2008
Susan wrote:
> and the rest of the questions?
> i can't help you unless you help me.
> susan
>
>
> On Nov 19, 12:20 am, Curious George <digin...@luukku.com> wrote:
>> Susan wrote:
>>> under what conditions do you want it to fire? what event would
>>> trigger the code?
>>> is the listbox in the worksheet, or is it in a userform?
>>> yes, you can probably do what you want, but you have to give it some
>>> parameters. i don't know if you'd need worksheet_change or
>>> worksheet_selectionchange. answer the questions and maybe me (or
>>> somebody else) can figure it out for you.
>>>
>>> susan
>>> On Nov 18, 3:03 pm, Curious George <digin...@luukku.com> wrote:
>>>> How do I constantly make events fire, like ListBox.Click subroutine.
>>>> Currently I can run the result only by executing the macro run button
>>>> thingie. Cant I make the VBA work all the time without pressing any
>>>> buttons to run the code?

>> Yes, I am using worksheet since userforms are way too complicated.- Hide quoted text -
>>
>> - Show quoted text -

>


Its been fixed with changing the Click event to Change, since apparently
method that is called when I click on the listbox items isn't click, but
change. Or rather that I assumed that Click works with every click.
 
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
Constant execution of ListBox.Click Curious George Microsoft Excel Discussion 6 19th Nov 2008 03:20 PM
ListBox Execution Carrie_Loos via OfficeKB.com Microsoft Excel Programming 3 16th Feb 2008 03:54 PM
Constant Right Click =?Utf-8?B?T3V0IG9mIElkZWFz?= Windows XP General 5 30th Aug 2006 08:49 PM
click listbox and refresh another listbox DC Gringo Microsoft ASP .NET 0 6th Apr 2004 03:13 AM
Is refreshing listbox rowsource in listbox click event possible? Jeremy Gollehon Microsoft Excel Programming 4 25th Sep 2003 06:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:41 AM.