Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ComboBox dilema

Status
Not open for further replies.

Codman

Technical User
Joined
Nov 25, 2003
Messages
44
Location
GB
I have a combobox in which to enter numeric data and transfer this to a specific cell on a sheet. The value is stored in this cell and read back to the combobox when the file is next opened. However, if the file is not closed but a change is required the value passed back from the cell has many many places after the decimal point. The data read into this cell is alway in the range 1 through to a maximum of 4 with two decimal places ie 2.34. Is there any way I can limit the display in the combobox. I ve tried to format the spreadsheet cell to a numeric with 2 DP's. Here's my code:-


Private Sub Sett_Cmd_OK_Click()
MySettings.Sett_Cmb_Rate = Sett_Cmb_Rate
Sheet5.Range("L4").Value = MySettings.Sett_Cmb_Rate
MySettings.Sett_Cmb_Curr = Sett_Cmb_Curr
Sheet5.Range("K4").Value = MySettings.Sett_Cmb_Curr
MultiPage1.Value = 1
Unload Settings1

Any help would be appreciated.

Pete
 
Hi,

FORMATING a cell does NOT change the numeric value within the cell.

You will have to round the value to your specification.

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top