Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default how to put cell information as filename

I have several worksheets that I use for team stats. I want to be able to
take the name off my roster sheet and use it as a name for the players
individual stats sheet. Is this possible? How?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 373
Default how to put cell information as filename

Do you mean you want to save the individual worksheet in a new file named
according to the name of the worksheet?

"locke1990" wrote in message
...
I have several worksheets that I use for team stats. I want to be able to
take the name off my roster sheet and use it as a name for the players
individual stats sheet. Is this possible? How?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default how to put cell information as filename

ok, i have a spreadsheet with about 50 worksheets. the first 20 or so are
individual games with stats. the next 20-25 are for individual player stats.
the final few pages are things like schedule, roster, team stats, etc.

What i am trying to do is: when i fill in the roster, lets say A1 on the
roster is named Player One. I want whatever I put in A1 to be the name of
the worksheet for Player One's stats. Hope this helps.

"Zone" wrote:

Do you mean you want to save the individual worksheet in a new file named
according to the name of the worksheet?

"locke1990" wrote in message
...
I have several worksheets that I use for team stats. I want to be able to
take the name off my roster sheet and use it as a name for the players
individual stats sheet. Is this possible? How?




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 373
Default how to put cell information as filename

locke, the solution depends on whether the worksheet for player one's stats
already exists and always resides in the same order within the worksheets
(and you just want to rename that sheet), or whether you want to create a
new sheet for Player One. James

"locke1990" wrote in message
...
ok, i have a spreadsheet with about 50 worksheets. the first 20 or so are
individual games with stats. the next 20-25 are for individual player
stats.
the final few pages are things like schedule, roster, team stats, etc.

What i am trying to do is: when i fill in the roster, lets say A1 on the
roster is named Player One. I want whatever I put in A1 to be the name of
the worksheet for Player One's stats. Hope this helps.

"Zone" wrote:

Do you mean you want to save the individual worksheet in a new file named
according to the name of the worksheet?

"locke1990" wrote in message
...
I have several worksheets that I use for team stats. I want to be able
to
take the name off my roster sheet and use it as a name for the players
individual stats sheet. Is this possible? How?






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default how to put cell information as filename

the sheet already exists and is in the same basic order and i just want to
have the sheet renamed to match the name on the roster

"Zone" wrote:

locke, the solution depends on whether the worksheet for player one's stats
already exists and always resides in the same order within the worksheets
(and you just want to rename that sheet), or whether you want to create a
new sheet for Player One. James

"locke1990" wrote in message
...
ok, i have a spreadsheet with about 50 worksheets. the first 20 or so are
individual games with stats. the next 20-25 are for individual player
stats.
the final few pages are things like schedule, roster, team stats, etc.

What i am trying to do is: when i fill in the roster, lets say A1 on the
roster is named Player One. I want whatever I put in A1 to be the name of
the worksheet for Player One's stats. Hope this helps.

"Zone" wrote:

Do you mean you want to save the individual worksheet in a new file named
according to the name of the worksheet?

"locke1990" wrote in message
...
I have several worksheets that I use for team stats. I want to be able
to
take the name off my roster sheet and use it as a name for the players
individual stats sheet. Is this possible? How?








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 373
Default how to put cell information as filename

Say you want to name your second worksheet with the value in cell A1, the
third worksheet with the value in A2, and so on. Copy this code and paste
it in a standard module:

Sub NameShts()
With ThisWorkbook
.Worksheets(2).Name = [a1]
.Worksheets(3).Name = [a2]
End With
End Sub

Or, say you have 20 names in column A and you want to name the sheets
beginning with the 5th sheet after those 20 names, use something like this
instead:
..
Sub NameShtsA()
With ThisWorkbook
For k=1 to 20
.Worksheets(5+k).Name = cells(k,"a")
Next k
End With
End Sub

Be sure you are on the worksheet with the name list when you run the macro.
If you have a blank cell in one of the 20 cells, you'll get an error. If
there are more names than sheets, you'll get an error.
HTH, James

"locke1990" wrote in message
...
the sheet already exists and is in the same basic order and i just want to
have the sheet renamed to match the name on the roster

"Zone" wrote:

locke, the solution depends on whether the worksheet for player one's
stats
already exists and always resides in the same order within the worksheets
(and you just want to rename that sheet), or whether you want to create a
new sheet for Player One. James

"locke1990" wrote in message
...
ok, i have a spreadsheet with about 50 worksheets. the first 20 or so
are
individual games with stats. the next 20-25 are for individual player
stats.
the final few pages are things like schedule, roster, team stats, etc.

What i am trying to do is: when i fill in the roster, lets say A1 on
the
roster is named Player One. I want whatever I put in A1 to be the name
of
the worksheet for Player One's stats. Hope this helps.

"Zone" wrote:

Do you mean you want to save the individual worksheet in a new file
named
according to the name of the worksheet?

"locke1990" wrote in message
...
I have several worksheets that I use for team stats. I want to be
able
to
take the name off my roster sheet and use it as a name for the
players
individual stats sheet. Is this possible? How?








  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default thanks

finally....i've been trying to do this now for 3 years. i've been manually
changing all the page names each year and for each sport.

thanks very much, with a little manipulation, its working wonderfully


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 373
Default thanks

Great! Thanks for the feedback. James
"locke1990" wrote in message
...
finally....i've been trying to do this now for 3 years. i've been
manually
changing all the page names each year and for each sport.

thanks very much, with a little manipulation, its working wonderfully




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
Cell("filename") doesn't update to new filename when do save as. Louis Excel Worksheet Functions 2 March 22nd 07 07:27 PM
Put filename in a cell DanD Excel Worksheet Functions 2 August 9th 06 08:45 PM
filename in Cell Leer587 Excel Discussion (Misc queries) 3 April 10th 06 06:04 PM
substitute the filename in a cell reference with a string in another cell. flummi Excel Discussion (Misc queries) 11 February 22nd 06 01:14 PM
Filename in a cell phica dk Excel Worksheet Functions 3 November 16th 04 04:14 PM


All times are GMT +1. The time now is 08:22 PM.

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

About Us

"It's about Microsoft Excel"