Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default UserForm Combobox Change Event

I am utilising a UserForm to populate a Sales Recording worksheet.
Existing clients are uniqely listed on a separate sheet accessed by a
Combobox on the UserForm.
The Combobox Change Event verfies that the chosen client already exists in
the Sales Recording worksheet.
Occasionally I need to enter new clients by manually entering into the
ComboBox, but the Change Event fires on the entry of the first character.
Is there a way of delaying the Change Event until the full name is keyed and
say the <ENTER key or <TAB key is pressed?
Thanks in anticipation
--
Regards
John Howard
Sydney, Australia
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default UserForm Combobox Change Event

John, try placing the code in Exit event

Private Sub ComboBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)

End Sub

If this post helps click Yes
---------------
Jacob Skaria


"John Howard" wrote:

I am utilising a UserForm to populate a Sales Recording worksheet.
Existing clients are uniqely listed on a separate sheet accessed by a
Combobox on the UserForm.
The Combobox Change Event verfies that the chosen client already exists in
the Sales Recording worksheet.
Occasionally I need to enter new clients by manually entering into the
ComboBox, but the Change Event fires on the entry of the first character.
Is there a way of delaying the Change Event until the full name is keyed and
say the <ENTER key or <TAB key is pressed?
Thanks in anticipation
--
Regards
John Howard
Sydney, Australia

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default UserForm Combobox Change Event

Hi

I think you should look at the Combobox Exit event.

Best regards,
Per

"John Howard" skrev i meddelelsen
...
I am utilising a UserForm to populate a Sales Recording worksheet.
Existing clients are uniqely listed on a separate sheet accessed by a
Combobox on the UserForm.
The Combobox Change Event verfies that the chosen client already exists in
the Sales Recording worksheet.
Occasionally I need to enter new clients by manually entering into the
ComboBox, but the Change Event fires on the entry of the first character.
Is there a way of delaying the Change Event until the full name is keyed
and
say the <ENTER key or <TAB key is pressed?
Thanks in anticipation
--
Regards
John Howard
Sydney, Australia


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default UserForm Combobox Change Event

Many Thanks Per and Jacob, the Exit event works perfectly for what I need.
It would pay for me to read the manual more closely, RTFM Eh?
--
Regards
John Howard
Sydney, Australia


"John Howard" wrote:

I am utilising a UserForm to populate a Sales Recording worksheet.
Existing clients are uniqely listed on a separate sheet accessed by a
Combobox on the UserForm.
The Combobox Change Event verfies that the chosen client already exists in
the Sales Recording worksheet.
Occasionally I need to enter new clients by manually entering into the
ComboBox, but the Change Event fires on the entry of the first character.
Is there a way of delaying the Change Event until the full name is keyed and
say the <ENTER key or <TAB key is pressed?
Thanks in anticipation
--
Regards
John Howard
Sydney, Australia

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default UserForm Combobox Change Event

John, when you are in the codesheet for the userform you have two drop down
fields at the top. Left one show the controls on your userform, right one
show the possible events for the control selected. ( It is the same for
sheet events!)
Nobody can remember all events, but when you see the options you will often
know which to choose.

Hopes this helps.

---
Per

"John Howard" skrev i meddelelsen
...
Many Thanks Per and Jacob, the Exit event works perfectly for what I need.
It would pay for me to read the manual more closely, RTFM Eh?
--
Regards
John Howard
Sydney, Australia


"John Howard" wrote:

I am utilising a UserForm to populate a Sales Recording worksheet.
Existing clients are uniqely listed on a separate sheet accessed by a
Combobox on the UserForm.
The Combobox Change Event verfies that the chosen client already exists
in
the Sales Recording worksheet.
Occasionally I need to enter new clients by manually entering into the
ComboBox, but the Change Event fires on the entry of the first character.
Is there a way of delaying the Change Event until the full name is keyed
and
say the <ENTER key or <TAB key is pressed?
Thanks in anticipation
--
Regards
John Howard
Sydney, Australia




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default UserForm Combobox Change Event

Hi

I think you should look at the Combobox Exit event.

Best regards,
Per

"John Howard" skrev i meddelelsen
...
I am utilising a UserForm to populate a Sales Recording worksheet.
Existing clients are uniqely listed on a separate sheet accessed by a
Combobox on the UserForm.
The Combobox Change Event verfies that the chosen client already exists in
the Sales Recording worksheet.
Occasionally I need to enter new clients by manually entering into the
ComboBox, but the Change Event fires on the entry of the first character.
Is there a way of delaying the Change Event until the full name is keyed
and
say the <ENTER key or <TAB key is pressed?
Thanks in anticipation
--
Regards
John Howard
Sydney, Australia


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
UserForm Combobox DropButtonClick Event Bug? [email protected] Excel Programming 4 November 27th 06 09:34 PM
Change event for comboBox cmpcwil2[_17_] Excel Programming 4 May 4th 06 03:01 PM
Combobox change event only by UI Excelerate-nl Excel Programming 0 May 2nd 06 04:05 PM
MsgBox in Enter event causes combobox not to run Change event Richard Excel Programming 0 March 6th 06 02:52 PM
combobox change event scrabtree23[_2_] Excel Programming 3 October 20th 03 05:56 PM


All times are GMT +1. The time now is 04:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"