Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
cell reference for multiple workbooks
Can I reference a cell to get the name of a workbook sheet to be dynamic.
-- Libby |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
cell reference for multiple workbooks
This will allow you to input a "title" into A2 and it will change the name of
sheet 2. Each time you change A2 on sheet 1, the name of sheet 2 will change as well. Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo ErrorHandler If Target.Column = 1 Then If SheetExists(Target.Value) Then MsgBox "Invalid Sheet Name", vbCritical, "Sheet Name Error" Application.EnableEvents = False Application.Undo Else Select Case Target.Row Case 2 Sheet2.Name = Target.Value End Select End If End If ErrorHandler: Application.EnableEvents = True End Sub -- Silverbird Designs @ www.silverbirddesigns.com Fighting Texas Aggie Class of 2009 "Libby" wrote: Can I reference a cell to get the name of a workbook sheet to be dynamic. -- Libby |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Rename Multiple Excel Workbooks based on cell contents | Excel Discussion (Misc queries) | |||
Multiple cell reference IF function | Excel Worksheet Functions | |||
How do I change cell information in multiple workbooks | Excel Discussion (Misc queries) | |||
Cell Reference, Multiple Sheets | Excel Worksheet Functions | |||
Is there a forumla to link an absolute cell reference in multiple. | Excel Worksheet Functions |