![]() |
#1
|
|||
|
|||
![]()
Hi
I have found this macro that automatically names the tab for a sheet. Does anyone know how to change the macro to allow a date as a tab name? Thank you..............complete macro novice ![]() Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range) Set Target = Range("A1") If Target = "" Then Exit Sub On Error GoTo Badname ActiveSheet.Name = Left(Target, 31) Exit Sub Badname: MsgBox "Please revise the entry in A1." & Chr(13) _ & "It appears to contain one or more " & Chr(13) _ & "illegal characters." & Chr(13) Range("A1").Activate End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to fetch data from one sheet to another with complete details and date wise as well | harisjawed86 | Excel Programming | 1 | 08-05-2014 09:10 PM |
![]() |
kmeechan | Excel | 1 | 05-28-2014 02:24 AM |
How to copy data automatically to particular sheet? | nicholes | Excel Programming | 13 | 03-12-2014 01:05 AM |
![]() |
kylera | Word | 3 | 06-28-2012 12:38 PM |
copy cell from sheet 2 to sheet 3 macro | slipperyjim | Excel Programming | 1 | 02-18-2010 01:31 AM |