Inserting text or value from ListBox

B

Borg

Hi,

I used the following VBA code to include values/text (from column B)
from another sheet (Cost Centers) into a list box:

**********************************
Private Sub UserForm_Initialize()

Dim r As Long
ListBox1.RowSource = ""
For r = 1 To 113
ListBox1.AddItem Sheets("Cost Centers").Range("B" & r).Value
Next r
End Sub

***********************************


How would I write code to include the corresponding text or value I
selected from the list box, in an active cell?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top