Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
CAN THE WORKSHEET OR TAB NAME REFER TO A CELL OR ADDRESS ON THE WORKSHEET?
|
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
THANK YOU VERY MUCH WAS VERY HELPFUL AND WORKED GREAT.
"JE McGimpsey" wrote: See http://www.mcgimpsey.com/excel/event...efromcell.html In article , wrote: CAN THE WORKSHEET OR TAB NAME REFER TO A CELL OR ADDRESS ON THE WORKSHEET? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Can someone modify this code to add a number after the sheet name if it a
duplicate? Private Sub Worksheet_Change(ByVal Target As Excel.Range) Const sNAMECELL As String = "A1" Const sERROR As String = "Invalid worksheet name in cell " Dim sSheetName As String With Target If Not Intersect(.Cells, Range(sNAMECELL)) Is Nothing Then sSheetName = Range(sNAMECELL).Value If Not sSheetName = "" Then On Error Resume Next Me.Name = sSheetName On Error GoTo 0 If Not sSheetName = Me.Name Then _ MsgBox sERROR & sNAMECELL End If End If End With End Sub And if I delete say a duplicate sheet (Sheet(1)) and copy another sheet and can it change the duplicate sheet to Sheet(1) and so on? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I refer to a worksheet using text in a cell? | Excel Discussion (Misc queries) | |||
refer to last cell in worksheet? | Excel Worksheet Functions | |||
woorkbook | Excel Worksheet Functions | |||
variable to refer to "this worksheet"? | Excel Worksheet Functions | |||
Refer to Excel Worksheet by its name | Excel Worksheet Functions |