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

This has to be easier than I'm making it. I have two Listboxes on a form. I
want to combine the input from the listboxes to create a single value. For
instance if the value from Listbox2 is "2005" and Listbox3 is "03" I want my
value to be "2005_03". I've tried MyValue = " & ListBox2.Value & "_" &
Listbox3.Value & " and MyValue = ListBox2.Value "_" Listbox3.Value and
neither work. What am I doing wrong?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Listbox Value

MyValue = ListBox2.Value & "_" & Listbox3.Value

Didn't work?

StephanieH wrote:

This has to be easier than I'm making it. I have two Listboxes on a form. I
want to combine the input from the listboxes to create a single value. For
instance if the value from Listbox2 is "2005" and Listbox3 is "03" I want my
value to be "2005_03". I've tried MyValue = " & ListBox2.Value & "_" &
Listbox3.Value & " and MyValue = ListBox2.Value "_" Listbox3.Value and
neither work. What am I doing wrong?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default Listbox Value

Ugh. So close, and yet so far.

Thanks Dave.



"Dave Peterson" wrote:

MyValue = ListBox2.Value & "_" & Listbox3.Value

Didn't work?

StephanieH wrote:

This has to be easier than I'm making it. I have two Listboxes on a form. I
want to combine the input from the listboxes to create a single value. For
instance if the value from Listbox2 is "2005" and Listbox3 is "03" I want my
value to be "2005_03". I've tried MyValue = " & ListBox2.Value & "_" &
Listbox3.Value & " and MyValue = ListBox2.Value "_" Listbox3.Value and
neither work. What am I doing wrong?


--

Dave Peterson

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
VBA: Creating listbox similar to the one in Pivot table (Listbox+Checkbox) modjoe23 Excel Programming 3 August 18th 05 02:35 PM
Modification of listbox to listbox code R.VENKATARAMAN Excel Programming 0 July 28th 05 05:36 AM
Multicolumn Listbox and ordinary listbox Ron_D Excel Programming 0 June 4th 04 08:56 PM
listbox.value not equal to listbox.list(listbox.listindex,0) ARB Excel Programming 0 October 22nd 03 12:46 AM
Is refreshing listbox rowsource in listbox click event possible? Jeremy Gollehon[_2_] Excel Programming 4 September 25th 03 06:45 PM


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