Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default double click option in listbox outputs to cell in excel 97 !


Hello,

First off... The solution has to work in excel 97 !

I am having a little trouble trying to figure this out.
I have been able to get a simple listbox, to get a range of data from
another worksheet in the same workbook, and it works just fine.

However, my issue where I'm stumped, is if I could double click on a
single option and it would output that same option to a specific cell
in the
same worksheet as the listbox ?

Thank you VERY much in advance,

spyrule.


--
spyrule
------------------------------------------------------------------------
spyrule's Profile: http://www.excelforum.com/member.php...o&userid=25489
View this thread: http://www.excelforum.com/showthread...hreadid=560541

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default double click option in listbox outputs to cell in excel 97 !

Hi SpyRule,

Try:

'=============
Private Sub ListBox1_DblClick(ByVal _
Cancel As MSForms.ReturnBoolean)
Me.Range("A1").Value = Me.ListBox1.Value
End Sub
'<<============

Or, using the simple change event:

'=============
Private Sub ListBox1_Change()
Me.Range("A1").Value = Me.ListBox1.Value
End Sub
'<<=============

---
Regards,
Norman



"spyrule" wrote in
message ...

Hello,

First off... The solution has to work in excel 97 !

I am having a little trouble trying to figure this out.
I have been able to get a simple listbox, to get a range of data from
another worksheet in the same workbook, and it works just fine.

However, my issue where I'm stumped, is if I could double click on a
single option and it would output that same option to a specific cell
in the
same worksheet as the listbox ?

Thank you VERY much in advance,

spyrule.


--
spyrule
------------------------------------------------------------------------
spyrule's Profile:
http://www.excelforum.com/member.php...o&userid=25489
View this thread: http://www.excelforum.com/showthread...hreadid=560541



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
Double Click within Cell James C. Excel Discussion (Misc queries) 0 April 23rd 09 01:17 AM
double click on cell that have link, Excel will jump to the refere RW Excel Worksheet Functions 1 June 8th 08 07:19 PM
In the Project window where will be the double click option details in macro Excel Worksheet Functions 1 December 6th 07 06:19 AM
Need selected item from listbox after double click [email protected] Excel Programming 1 February 23rd 06 03:18 PM
Click on graph bar to execute a double-click in a pivot table cell [email protected] Charts and Charting in Excel 4 August 3rd 05 01:37 AM


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