LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Problem formatting decimals in ComboBox

Thanks Tom - I deleted the comboBox and put in a new one and the
default values allowed this to work in both German and English regional
languages. Thanks!

Another problem has arisen and I can't find the root of it:

In German regional language settings, if I select anything greater than
0.999 it will eliminate the decimal seperator. For example:

I select 0,999 from the list, and it will show 0,999 after I leave
focus
I select 1,000 from the list, and it will show 1000 after I leave focus

This is storing as 1000 in the worksheet too, and it's screwing up the
numbers! Only happening in European regional language settings...


Tom Ogilvy wrote:
Have you configured the combobox in some way so it doesn't allow the
assignment? does the value match a value in the dropdown list. Is the list
single column? have you used the boundcolumn or textcolumn properties. Have
you enforced matching. Just some things to look at as well as other
properties.

--
Regards,
Tom Ogilvy


"TylerTheCoderGuy" wrote:

Hello,

I have the following line of code in the UserForm_Initialize() section
to show a 3-decimal placeholder in the selected item of the combobox:

comboBox1.Text = FormatNumber((Worksheets("Worksheet1").Cells(13,
5).Value), 3)

I am getting the error message: "Run-time error '380': Could not set
the Text property. Invalid property value."

Does anybody have any ideas as to what would be causing this error?

Best regards,
Tyler





 
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
Omitting the whole number when formatting decimals BunnyHop Excel Discussion (Misc queries) 11 July 21st 09 09:20 PM
Omitting whole numbers when formatting decimals BunnyHop Excel Worksheet Functions 2 July 17th 09 06:52 AM
Formatting axis decimals Don Culp Charts and Charting in Excel 1 February 22nd 07 08:30 AM
Conditional formatting : amount of decimals belgian11 Excel Discussion (Misc queries) 0 December 25th 05 04:47 PM
Formatting cells for decimals and hyphens Kram Excel Discussion (Misc queries) 4 December 5th 05 02:20 AM


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