View Single Post
 
Old 05-24-2015, 05:56 AM
gmayor's Avatar
gmayor gmayor is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Your workbook is password protected!

Maybe something like
Code:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)

    If Intersect(Target, Range("B5:B8")) Is Nothing Or Target.Cells.Count > 1 Then Exit Sub
    If IsDate(Range("B5")) Then
        Sheet3.Name = Format(Range("B5"), "dd-mm-yy")
    End If
    If IsDate(Range("B6")) Then
        Sheet4.Name = Format(Range("B6"), "dd-mm-yy")
    End If
    If IsDate(Range("B7")) Then
        Sheet5.Name = Format(Range("B7"), "dd-mm-yy")
    End If
    If IsDate(Range("B8")) Then
        Sheet6.Name = Format(Range("B8"), "dd-mm-yy")
    End If
End Sub
in the Sheet 2 code. This will update all the sheet names requested when one of the dates is changed.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote