Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
MBlake
 
Posts: n/a
Default Number format for Combobox

Hi,
I have a user form that reads a list of numbers and places them into a
combobox. Often I have to add a new number to the list and here is the
problem. If I type a new number into the list and run the form, the new
number is not displayed in the combobox.

I have found that if I drag the old number list down and increase the number
to the new one I require and then delete any intervening numbers that are
not required, the combo box will then read the new additional number.

I have tried formatting all numbers to the same format but it makes no
difference. It is no hardship for me to add new numbers by the drag method
but I don't know why this happens. Any ideas would be greatly appreciated.

Cheers,
Mickey


  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

How did you assign the list of valid values to that combobox.

If you gave the .rowsource property the range (say sheet1!a1:a10), then it won't
know if you add/delete from that range.

One way around it is to give your range a dynamic name. That name could refer
to a range that grows and contracts when you add/delete rows.

Take a look at Debra Dalgleish's site to read more about it:
http://www.contextures.com/xlNames01.html#Dynamic

You could do something in code, too that looks for the starting and ending
cells.



MBlake wrote:

Hi,
I have a user form that reads a list of numbers and places them into a
combobox. Often I have to add a new number to the list and here is the
problem. If I type a new number into the list and run the form, the new
number is not displayed in the combobox.

I have found that if I drag the old number list down and increase the number
to the new one I require and then delete any intervening numbers that are
not required, the combo box will then read the new additional number.

I have tried formatting all numbers to the same format but it makes no
difference. It is no hardship for me to add new numbers by the drag method
but I don't know why this happens. Any ideas would be greatly appreciated.

Cheers,
Mickey


--

Dave Peterson
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
I want to format a number cell without the decimal and without ro. LAM Excel Discussion (Misc queries) 8 April 20th 05 04:59 PM
16 digit number wont keep alteration unless format cell to text Croc001 Excel Discussion (Misc queries) 3 March 30th 05 09:12 AM
Convert degree from decimal number to the standard format (degre. Zainelabdin Excel Discussion (Misc queries) 3 March 27th 05 12:37 PM
How do i change numbers in text format to number format? Greg New Users to Excel 1 December 14th 04 05:22 PM
Custom number format E2engine Excel Worksheet Functions 10 December 4th 04 02:33 PM


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