how do I get the tab name into a cell

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

Guest

I have tried using the following but there must be a better and easier way to
get the &[Tab] name into a cell of a sheet. Any ideas anyone ??
 
parse it out of the

=CELL("filename",A1)

The workbook must have been saved at least once for this to work.
 
Sub TABNAME()
ActiveCell.Value = ActiveSheet.Name
End Sub

Hope this is what ur after
r
Pete
 

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