Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Pass highlighted list variable to caption

When the user click on an item in a list, I want the name of the item passed
to a caption box. What do I pass to the caption. The following below does
not work

Private Sub ListBox1_Click()
Me.Label2.Caption = List.Selected
End Sub

Thanks

EM
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Pass highlighted list variable to caption

Here it is

Private Sub ListBox1_Click()
Me.Label2.Caption = ListBox1.Value
End Sub


"ExcelMonkey" wrote:

When the user click on an item in a list, I want the name of the item passed
to a caption box. What do I pass to the caption. The following below does
not work

Private Sub ListBox1_Click()
Me.Label2.Caption = List.Selected
End Sub

Thanks

EM

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
Defining UserForm Caption from a Variable [email protected] Excel Worksheet Functions 1 January 3rd 07 02:30 PM
Pass a Variable List Of Values To Subroutine or Function Dean Hinson[_3_] Excel Programming 2 January 28th 05 06:49 PM
Pass Variable Question SyrHoop Excel Programming 2 November 10th 04 05:15 PM
Userform - Label Caption - How to update from a variable Alan Excel Programming 3 August 2nd 04 04:39 AM
How to pass variable value between macros BCS Excel Programming 0 July 25th 03 08:01 PM


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