Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
HI
This is a piece of code written by Dave Peterson, it works perfect for my needs. Option Explicit Sub testme01() Dim wks As Worksheet For Each wks In ActiveWorkbook.Worksheets With wks On Error Resume Next ..Name = .Range("b4").Text If Err.Number < 0 Then MsgBox .Name & " was not renamed" Err.Clear End If On Error GoTo 0 End With Next wks End Sub However what I would like to also do would be to delete a worksheet if the is no value in cell b4. Many thanks for any suggestions. Thanks Eddie |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I name Worksheet Tabs based on some king of reference? | Excel Worksheet Functions | |||
Renaming Tabs | Excel Discussion (Misc queries) | |||
renaming worksheet tabs | Excel Discussion (Misc queries) | |||
Renaming Tabs | Excel Discussion (Misc queries) | |||
Renaming worksheet tabs | Excel Programming |