Thread: naming tabs
View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jeff
 
Posts: n/a
Default naming tabs

Paul B wrote:
Jeff,
To put in this macro right click on the worksheet tab and view code, in the
window that opens paste this code, press Alt and Q to close this window and
go back to your workbook. If you are using excel 2000 or newer you may have
to change the macro security settings to get the macro to run. To change the
security settings go to tools, macro, security, security level and set it to
medium

The code that was posted will work if your sheet is the first sheet in the
workbook, if not you may want to try this

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then
If Target.Value < "" Then
On Error Resume Next
ActiveSheet.Name = Target.Value
On Error GoTo 0
End If
End If

End Sub



Paul, this also works well thank you, can you advise me of a way of
using this or another formula to enable me to rename all sheets in a
work book ?? do I need to place this formula in all worksheets using the
VB editor ??