Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default ComboBox Problem

Hi,
Please can anyone assist with a combobox problem?. I just can't figure out
why the following problem is occurring.

User selects a number from a listbox, that number uses vlookup to fill in
four text boxes. Textbox 3 then drives a combobox.

All works well until I make any change to the lookup table, if I change the
text to Capitals or add a new number to the list, then the combobox only
works once a user has selected a specific selection that is number 11 in the
list of available numbers.

Everything worked fine for the previous two months, now I am unable to make
any changes to the lookup table and this I must do frequently.

Any ideas would be greatly appreciated as I need desperately to get this
working again.

Thanks,
Mickey


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default ComboBox Problem

Not sure about your issue, but instead of lookup I use
the ListIndex number to find the information cell.

=======================================
x = Userform1.Listbox1.ListIndex +1

Userform1.TextBox1 = Sheets("MySheet").Cells(x,1)
=====================================

the +1 is because the listindex starts at 0

Cells(x,1) refers to Range("Ax")

--
steveB

Remove "AYN" from email to respond
"MBlake" wrote in message
...
Hi,
Please can anyone assist with a combobox problem?. I just can't figure out
why the following problem is occurring.

User selects a number from a listbox, that number uses vlookup to fill in
four text boxes. Textbox 3 then drives a combobox.

All works well until I make any change to the lookup table, if I change
the text to Capitals or add a new number to the list, then the combobox
only works once a user has selected a specific selection that is number 11
in the list of available numbers.

Everything worked fine for the previous two months, now I am unable to
make any changes to the lookup table and this I must do frequently.

Any ideas would be greatly appreciated as I need desperately to get this
working again.

Thanks,
Mickey



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default ComboBox Problem

Hi Steve,
Thanks for the response. I had a lot of help from this group when kicking
off my userform and VLOOKUP and this was the easiest method for me to learn
at the time. I am now adding more knowledge and will take on board your
suggestion of ListIndex along with a few others.

In the meantime I have solved my problem, it took some time but eventually
the light went on!. Having changed the lists from "RPU (2 spaces) 1" to
"RPU (1 space) 1", I forgot to make the same change to the lookup table!
DOH!

Thanks again,
Mickey


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default ComboBox Problem

Glad to hear your success!

keep on exceling....

--
steveB

Remove "AYN" from email to respond
"MBlake" wrote in message
...
Hi Steve,
Thanks for the response. I had a lot of help from this group when kicking
off my userform and VLOOKUP and this was the easiest method for me to
learn at the time. I am now adding more knowledge and will take on board
your suggestion of ListIndex along with a few others.

In the meantime I have solved my problem, it took some time but eventually
the light went on!. Having changed the lists from "RPU (2 spaces) 1" to
"RPU (1 space) 1", I forgot to make the same change to the lookup table!
DOH!

Thanks again,
Mickey



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
ComboBox problem hoyos Excel Discussion (Misc queries) 4 December 10th 09 11:16 AM
ComboBox Problem R Avery Excel Programming 4 August 3rd 04 06:24 PM
Combobox Problem Tom Ogilvy Excel Programming 0 July 27th 04 06:38 PM
Combobox problem Ian Coates Excel Programming 4 February 21st 04 09:02 AM
ComboBox Problem Tressa Excel Programming 2 August 27th 03 08:58 PM


All times are GMT +1. The time now is 06:58 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"