Excel Macro For Worksheets - TechRepublic
General discussion
March 21, 2001 at 06:10 AM
warthog

Excel Macro For Worksheets

by warthog . Updated 25 years, 3 months ago

Is there an Excel(97/2000) formula that will place the Worksheet name (from the tab) into a cell automatically?

The macro below performs this, but you have to run the macro after each name change.

I was looking at whenever the worksheet name is changed or a worksheet copied, the cell’s information changed automatically.

Sub pubPopulateName()
ActiveCell.Value = ActiveSheet.Name
End Sub

This discussion is locked

All Comments