Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Formating Combo Boxes

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Formating Combo Boxes

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Formating Combo Boxes

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Formating Combo Boxes

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formating Combo Boxes

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
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
Getting Combo boxes to change options based on other Combo boxes. Ancient Wolf New Users to Excel 1 March 27th 09 06:29 PM
Selecting subsets using combo boxes or list boxes CLamar Excel Discussion (Misc queries) 0 June 1st 06 07:43 PM
Questions on combo boxes and list boxes. Marc New Users to Excel 1 March 14th 06 09:40 AM
Combo Boxes and Tick Boxes turner2000[_2_] Excel Programming 0 September 29th 04 09:09 PM
Combo Boxes and Tick Boxes turner2000 Excel Programming 0 September 28th 04 10:01 PM


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