Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default ComboBox "Not In List" Warning

Ok I have had a look arround, and nothing seems to be what i need, and
what seems like i need doesnt make sense.

What I require is code so that if an entry that is put into a combo box
is not in the "rowsource" list then I would like a message box to
appear to warn the data entry person,

my rowsource is a range called "SerialMaster" and my combobox is called
"ComboSerialNo"

Any help would be greatly apprechiated

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default ComboBox "Not In List" Warning

Can you not just set the combobox.Style to fmStyleDropDownList ?
Then the entry must be in the list.

NickHK

wrote in message
oups.com...
Ok I have had a look arround, and nothing seems to be what i need, and
what seems like i need doesnt make sense.

What I require is code so that if an entry that is put into a combo box
is not in the "rowsource" list then I would like a message box to
appear to warn the data entry person,

my rowsource is a range called "SerialMaster" and my combobox is called
"ComboSerialNo"

Any help would be greatly apprechiated



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default ComboBox "Not In List" Warning


I could, but that would not work with the process,

What I want is if the entry is not in the list for it to warn the data
entry person that they have to add this item into the other sheet, but
i still want them to be able to finish there current entry before going
to add the item,

eventually i want if the item is not in the list then the entry will
continue , and when it is entered with the ok button then it open up
the "FormAdAsset" and put the new serial number into the "TextSerialNo"
field so that the asset can be added

so really the msgbox warning is just a interm until i have the time to
write the code for what i really want it to do, which will just be an
extension to the warning code im after

make sense?

cheers
On Jan 24, 10:50 am, "NickHK" wrote:
Can you not just set the combobox.Style to fmStyleDropDownList ?
Then the entry must be in the list.

NickHK

wrote in ooglegroups.com...



Ok I have had a look arround, and nothing seems to be what i need, and
what seems like i need doesnt make sense.


What I require is code so that if an entry that is put into a combo box
is not in the "rowsource" list then I would like a message box to
appear to warn the data entry person,


my rowsource is a range called "SerialMaster" and my combobox is called
"ComboSerialNo"


Any help would be greatly apprechiated- Hide quoted text -- Show quoted text -


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default ComboBox "Not In List" Warning

Why not provide a Search Text box then, as you neither wish to limit to
existing entries nor allow new entry unconditionally.
The entry in the text box can be matched to the WS list (VLOOKUP/MATCH etc)
or the combobox.list items, during the TextBox_Change event.

NickHK

wrote in message
ups.com...

I could, but that would not work with the process,

What I want is if the entry is not in the list for it to warn the data
entry person that they have to add this item into the other sheet, but
i still want them to be able to finish there current entry before going
to add the item,

eventually i want if the item is not in the list then the entry will
continue , and when it is entered with the ok button then it open up
the "FormAdAsset" and put the new serial number into the "TextSerialNo"
field so that the asset can be added

so really the msgbox warning is just a interm until i have the time to
write the code for what i really want it to do, which will just be an
extension to the warning code im after

make sense?

cheers
On Jan 24, 10:50 am, "NickHK" wrote:
Can you not just set the combobox.Style to fmStyleDropDownList ?
Then the entry must be in the list.

NickHK

wrote in

ooglegroups.com...



Ok I have had a look arround, and nothing seems to be what i need, and
what seems like i need doesnt make sense.


What I require is code so that if an entry that is put into a combo

box
is not in the "rowsource" list then I would like a message box to
appear to warn the data entry person,


my rowsource is a range called "SerialMaster" and my combobox is

called
"ComboSerialNo"


Any help would be greatly apprechiated- Hide quoted text -- Show

quoted text -



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
Help neededin adding an additional "Warning Flag" to my current lo Danny Boy Excel Worksheet Functions 1 June 10th 09 02:50 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
cannot use "Create List" and "Share Workbook" same time Devendra Excel Discussion (Misc queries) 0 October 26th 06 06:05 AM
How to stop warning message in Excel "initialize ActiveX controls" Sya Excel Programming 1 April 27th 06 10:14 AM
Email from Excel; MS warning "program is trying to send mail on your behalf" KR Excel Programming 2 July 11th 05 05:00 PM


All times are GMT +1. The time now is 04:26 PM.

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"