Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Simon205
 
Posts: n/a
Default Combo Box properties problem


Hi,

Does anyone know how to ensure that a cell's text formatting properties
carry through to the selected value in a combo box?

For example, if the combo box is linked to a cell with the value 400,
with text suffix of "mm", how do I get the combo box to display
"400mm" when selected?

Thanks for any help,

Simon

Excel 2000


--
Simon205
------------------------------------------------------------------------
Simon205's Profile: http://www.excelforum.com/member.php...o&userid=34662
View this thread: http://www.excelforum.com/showthread...hreadid=544272

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Combo Box properties problem

You could load the combobox with code.

I used a combobox from the control toolbox on worksheet 1:

Option Explicit
Sub testme()

Dim myRng As Range
Dim myCell As Range

With Worksheets("sheet1")
Set myRng = .Range("a1:A10")
.ComboBox1.Clear
For Each myCell In myRng.Cells
.ComboBox1.AddItem myCell.Text
Next myCell
End With

End Sub




Simon205 wrote:

Hi,

Does anyone know how to ensure that a cell's text formatting properties
carry through to the selected value in a combo box?

For example, if the combo box is linked to a cell with the value 400,
with text suffix of "mm", how do I get the combo box to display
"400mm" when selected?

Thanks for any help,

Simon

Excel 2000

--
Simon205
------------------------------------------------------------------------
Simon205's Profile: http://www.excelforum.com/member.php...o&userid=34662
View this thread: http://www.excelforum.com/showthread...hreadid=544272


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Simon205
 
Posts: n/a
Default Combo Box properties problem


Ok, well I've never got into VB code before, so that's way over my
head!

I was hoping there'd be a properties option I'm not aware of, but
thanks for your help anyway?

Cheers,


Simon


--
Simon205
------------------------------------------------------------------------
Simon205's Profile: http://www.excelforum.com/member.php...o&userid=34662
View this thread: http://www.excelforum.com/showthread...hreadid=544272

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
Problem with MS Community Newsgroups? [email protected] Excel Discussion (Misc queries) 4 May 14th 06 04:38 PM
Combo Box David French Excel Worksheet Functions 0 October 3rd 05 06:02 PM
Getting A Value from a Combo Box to a Cell?? RP1507 Excel Discussion (Misc queries) 1 July 13th 05 03:14 PM
Nesting Combo Boxes /Returning an Array ELMONDO SNITHER Excel Discussion (Misc queries) 1 June 30th 05 01:15 AM
combo box help littlegreenmen1 Excel Discussion (Misc queries) 5 June 7th 05 06:27 PM


All times are GMT +1. The time now is 02:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"