PC Review


Reply
Thread Tools Rate Thread

cell reference for multiple workbooks

 
 
=?Utf-8?B?TGliYnk=?=
Guest
Posts: n/a
 
      17th Jul 2007
Can I reference a cell to get the name of a workbook sheet to be dynamic.
--
Libby
 
Reply With Quote
 
 
 
 
=?Utf-8?B?VGV4YXMgQWdnaWU=?=
Guest
Posts: n/a
 
      17th Jul 2007
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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I create a 3-D reference from multiple workbooks Jennifer Microsoft Excel Worksheet Functions 2 8th Jan 2009 08:27 PM
Reference to Multiple Opened Workbooks hansjhamm@yahoo.com Microsoft Excel Programming 3 14th Mar 2006 01:03 PM
multiple workbooks reference =?Utf-8?B?TWl0Y2g=?= Microsoft Excel Programming 1 13th Jun 2005 08:45 PM
Using Cell Contents to Reference External Workbooks SowBelly Microsoft Excel Discussion 2 28th Jul 2004 01:50 PM
use cell contents to reference other workbooks Jack Microsoft Excel Misc 2 19th Jan 2004 05:27 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:54 AM.