View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
JLGWhiz JLGWhiz is offline
external usenet poster
 
Posts: 3,986
Default list sheet tab names in listbox

Put in the UserForm Initialize event code.

For Each sh In ActiveWorkbook.Sheets
If Not sh.Name Is Nothing Then
UserForm1.ListBox1.AddItem sh.Name
End If
Next

Untested.

"pswanie" wrote:

how do i list all the sheet tab names in the current workbook in listbox1?
the listbox1 is on userform1

thanx