Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Is there a way to use a field link to rename a worksheet ?

I'm trying to find a way to make a worksheet name change according to a field
name . It would be nice to make the worksheet rename according to what is
typed in a specific field in a different worksheet. Anybody have any idea if
this can be done ?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Is there a way to use a field link to rename a worksheet ?

One way is to put this in the sheet module of the sheet where the cell to be
changed is located.
right click sheet tabview codecopy/paste thismodify to suitsave
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address < "$H$1" Then Exit Sub
Sheet6.Name = Target
End Sub

--
Don Guillett
SalesAid Software

"John H." <John wrote in message
...
I'm trying to find a way to make a worksheet name change according to a
field
name . It would be nice to make the worksheet rename according to what is
typed in a specific field in a different worksheet. Anybody have any idea
if
this can be done ?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Is there a way to use a field link to rename a worksheet ?

well.....that completely lost me ?

"Don Guillett" wrote:

One way is to put this in the sheet module of the sheet where the cell to be
changed is located.
right click sheet tabview codecopy/paste thismodify to suitsave
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address < "$H$1" Then Exit Sub
Sheet6.Name = Target
End Sub

--
Don Guillett
SalesAid Software

"John H." <John wrote in message
...
I'm trying to find a way to make a worksheet name change according to a
field
name . It would be nice to make the worksheet rename according to what is
typed in a specific field in a different worksheet. Anybody have any idea
if
this can be done ?




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Is there a way to use a field link to rename a worksheet ?

wow....thanks....it works !
i'm not familiar with Visual Basic....can you suggest a good book for me to
learn the language and code info....would love to learn it and make more use
of it myself.

thanks,
john h.

"Don Guillett" wrote:

Read it again, slowly. If you do it and change cell h1 sheet6 name will
change. Try it.

--
Don Guillett
SalesAid Software

"John H." wrote in message
...
well.....that completely lost me ?

"Don Guillett" wrote:

One way is to put this in the sheet module of the sheet where the cell to
be
changed is located.
right click sheet tabview codecopy/paste thismodify to suitsave
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address < "$H$1" Then Exit Sub
Sheet6.Name = Target
End Sub

--
Don Guillett
SalesAid Software

"John H." <John wrote in message
...
I'm trying to find a way to make a worksheet name change according to a
field
name . It would be nice to make the worksheet rename according to what
is
typed in a specific field in a different worksheet. Anybody have any
idea
if
this can be done ?








  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Is there a way to use a field link to rename a worksheet ?

John

Don's answer involves worksheet event code.

Select the sheet tab and "View Code". Copy/paste the code into that sheet
module.

As written the code says..............

Whenever you type something into H1(field name cell) on the sheet, Sheet6 name
will change to that value.

NOTE: Sheet6 is Excel's VBA internal index name for the sheet and not
necessarily what you have named the sheet.

Currently you might have named it "yourname"

To find out which of your sheets is Sheet6 open VB Editor by hitting Alt + F11

CTRL + r to open Project Explorer.

Select your workbook/project and expand it.

Select Excel Objects to expand that.

You will get a list of the sheets with their index sheet numbers followed by the
actual name in parens.

Sheet6(yourname).

Change Don's Sheet6 in the code to the appropriate sheet index number if
necessary
Also change $H$1 to the appropriate field name cell.


Gord Dibben MS Excel MVP

On Thu, 4 Jan 2007 10:51:00 -0800, John H.
wrote:

well.....that completely lost me ?

"Don Guillett" wrote:

One way is to put this in the sheet module of the sheet where the cell to be
changed is located.
right click sheet tabview codecopy/paste thismodify to suitsave
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address < "$H$1" Then Exit Sub
Sheet6.Name = Target
End Sub

--
Don Guillett
SalesAid Software

"John H." <John wrote in message
...
I'm trying to find a way to make a worksheet name change according to a
field
name . It would be nice to make the worksheet rename according to what is
typed in a specific field in a different worksheet. Anybody have any idea
if
this can be done ?





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linked date field in worksheet defaults a blank field as 1/0/1900 AmnNkD Excel Worksheet Functions 2 September 12th 06 05:42 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
I want in one worksheet to relatively link to/reference cells in another without changing the format of the current worksheet. [email protected] Excel Discussion (Misc queries) 0 September 22nd 05 04:39 PM
How do link to a remote worksheet using the path value in a field? Michael T. Links and Linking in Excel 3 December 11th 04 08:45 AM
Copy worksheet with Pivot Table and break link to original workshe setter-lover Excel Worksheet Functions 0 November 18th 04 09:29 PM


All times are GMT +1. The time now is 02:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"