Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a combo box that references a range. Both the range and the
linked cell are formated for 00%. The drop down list in the combo box shows 10%,20%,30%. But everytime i select on of the items from the dropdown list I return a value of .1,.2 or .3 depending on what I selected. I have looked through the forums but have been unable to locate a fix for this. Can someone please help me. Thanks Steve Monczka |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Steve,
Try this: Private Sub ComboBox1_Change() ComboBox1.Value = Format(ComboBox1.Value, "00%") ....... ' any other code End Sub Change the "00%" to "00.%" if you want a decimal place HTH "Smonczka" wrote: I have a combo box that references a range. Both the range and the linked cell are formated for 00%. The drop down list in the combo box shows 10%,20%,30%. But everytime i select on of the items from the dropdown list I return a value of .1,.2 or .3 depending on what I selected. I have looked through the forums but have been unable to locate a fix for this. Can someone please help me. Thanks Steve Monczka |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Oops - should be "00.0%"
"Toppers" wrote: Steve, Try this: Private Sub ComboBox1_Change() ComboBox1.Value = Format(ComboBox1.Value, "00%") ...... ' any other code End Sub Change the "00%" to "00.%" if you want a decimal place HTH "Smonczka" wrote: I have a combo box that references a range. Both the range and the linked cell are formated for 00%. The drop down list in the combo box shows 10%,20%,30%. But everytime i select on of the items from the dropdown list I return a value of .1,.2 or .3 depending on what I selected. I have looked through the forums but have been unable to locate a fix for this. Can someone please help me. Thanks Steve Monczka |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Toppers, thanks but that didn't work either.
The real problem seems to be that I am not formating the Combobox. No matter what I format the linked cell I still don't seem to change the combobox formating. Steve |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you, thank you, thank you!
This was driving me nuts. It worked perfectly. Thanks again. *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Getting Combo boxes to change options based on other Combo boxes. | New Users to Excel | |||
Selecting subsets using combo boxes or list boxes | Excel Discussion (Misc queries) | |||
Questions on combo boxes and list boxes. | New Users to Excel | |||
Combo Boxes and Tick Boxes | Excel Programming | |||
Combo Boxes and Tick Boxes | Excel Programming |