Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
sjayar
 
Posts: n/a
Default Assigning a value to a cell from a combox


Hi all,

I have a 2 combobox and a button in my work sheet

On click of this button,
*the values in combobox must be assigned to a cell*
(assume h8 and h9).

can any one please help me to solve this problem.


--
sjayar
------------------------------------------------------------------------
sjayar's Profile: http://www.excelforum.com/member.php...o&userid=28435
View this thread: http://www.excelforum.com/showthread...hreadid=480977

  #2   Report Post  
dominicb
 
Posts: n/a
Default Assigning a value to a cell from a combox


Good morning sjayar

It really depends on how you have set up your combo box and button. If
you have done it through the control toolbox use this code attached to
your button (double click on the button to open up the code window).

Range("H8").Value = ComboBox1.Value
Range("H9").Value = ComboBox2.Value

If you are doing it through the forms toolbar then you're making life a
bit more difficult for yourself because I think that this can be set to
return only the position of your selection (ie., 1,2,3 etc) but not the
actual combobox value. To set this, right click and select Format
Control, Control and enter a cell in the cell link box. You would then
need to use a lookuptable or something to find out the value.

HTH

DominicB


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=480977

  #3   Report Post  
sjayar
 
Posts: n/a
Default Assigning a value to a cell from a combox


hi ,
thank u very much .
it worked.
lots and lots of thanks to you.


--
sjayar
------------------------------------------------------------------------
sjayar's Profile: http://www.excelforum.com/member.php...o&userid=28435
View this thread: http://www.excelforum.com/showthread...hreadid=480977

  #4   Report Post  
dominicb
 
Posts: n/a
Default Assigning a value to a cell from a combox


Hi sjayar

You're welcome. Appreciate the feedback.

DominicB


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=480977

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
change cell link in combox box dynamically Kate Yang Excel Discussion (Misc queries) 2 August 30th 05 08:51 PM
Cell color based upon cell value My View Excel Discussion (Misc queries) 11 July 6th 05 03:59 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Function syntax to compare cell contents ES Excel Worksheet Functions 2 May 18th 05 03:53 PM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


All times are GMT +1. The time now is 05:39 PM.

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"