ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Some simple code (https://www.excelbanter.com/excel-programming/281071-some-simple-code.html)

WiReLaD

Some simple code
 
Hello,
Could some nice person help me?

I need to know how to code vba listbox data.
when sheet1 opens listbox shows data from say A1: A999
user clicks data shown in listbox then on click data appears in Sheet2.range
("Whereva")

there easy! :-(

Please anyone....

WiReLaD
Come on Tom - you helped me before...



Tom Ogilvy

Some simple code
 
I assume you don't want to link it - but want to use the click event of the
listbox:

Private Sub Listbox1_Click()
Worksheets("Sheet2").range("Whereva").Value = listbox1.Value
End Sub

--
Regards,
Tom Ogilvy

"WiReLaD" wrote in message
...
Hello,
Could some nice person help me?

I need to know how to code vba listbox data.
when sheet1 opens listbox shows data from say A1: A999
user clicks data shown in listbox then on click data appears in

Sheet2.range
("Whereva")

there easy! :-(

Please anyone....

WiReLaD
Come on Tom - you helped me before...






All times are GMT +1. The time now is 12:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com