Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default referencing combobox

Hi All,

I have multiple combo boxes in my Userform. After the users have selected
their choices in each of the combo box, I would like all the information to
be group into one textbox (spacing by commas). At this stage the user is able
to change or add anything he/she wants. Then the user would hit the Submit
button and the data would be transfer to the active cell (the cell that the
user double clicked on to get into the userform). I am thinking of something
like this:

Private Sub Submit_button_Click()
Dim InvestStr As String
Dim transferstr As String

InvestStr = Me.combobox1.text, me.combobox2.Text, me.combobox3.text
Me.textbox1 = investstr
transferstr = Me.textbox1

Insert transferstr into the activecell

End Sub

Please help. thanks in advance!
--
Learning
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default referencing combobox


Try the & symbol
activecell=combobox1 & "," & combobox2 & "," & combobox3


--
Stringer
------------------------------------------------------------------------
Stringer's Profile: http://www.thecodecage.com/forumz/member.php?userid=117
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=66627

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default referencing combobox

thanks! i finally figured it out.
--
Learning


"Stringer" wrote:


Try the & symbol
activecell=combobox1 & "," & combobox2 & "," & combobox3


--
Stringer
------------------------------------------------------------------------
Stringer's Profile: http://www.thecodecage.com/forumz/member.php?userid=117
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=66627


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
Combobox value to be set as Target for referencing from. How ? Corey Excel Programming 1 January 2nd 07 02:25 AM
Referencing Combobox with other cells in a different worksheet?? Adam Excel Programming 4 March 29th 05 09:07 AM
referencing ComboBox salihyil[_7_] Excel Programming 1 February 26th 04 02:13 PM
referencing ComboBox salihyil[_9_] Excel Programming 0 February 26th 04 09:57 AM
Referencing a ComboBox control from a Workbook Object? debartsa Excel Programming 3 December 9th 03 08:43 PM


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