List Box into a cell

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Newbie list box question.

I would like to create a list box with entries from a named range "FRA"

When I select a entry from the list box I would like to call a macro.

Can someone help me with the code to create a listbox in whatever the
activecell is?

Thanks for the help
 
Try: in cell C2
Data Validation List
( in sourse box write =FRA )

put this in Sheets-kode-window:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("C2")) Is Nothing Then Exit Sub
MsgBox ("Selected list-value : ") & Target
End Sub
 

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

Back
Top