Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Formula for naming tabs

I saw a previous question for this, but I need help understanding the formula.
I tried coping this formula, into A1, but--what do I need to change?
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,LEN(CELL("filename",A 1))-FIND("]",CELL("filename",A1)))

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,290
Default Formula for naming tabs

The workbook must be saved.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)


"SharonJo"
wrote in message
I saw a previous question for this, but I need help understanding the formula.
I tried coping this formula, into A1, but--what do I need to change?
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,LEN(CELL("filename",A 1))-FIND("]",CELL("filename",A1)))

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 492
Default Formula for naming tabs

The formula looks like an answer to a specific question, what the original
question was is hard to say. It's series of text fomulas doing something,
not sure what!
What are you trying to achieve? You mention naming tabs, if you mean sheet
tabs, you can only do that manually or with VB code, a formula can't do
that.
Post back explaining what you want to do, I'm sure you'll get answers,
Regards,
Alan.
"SharonJo" wrote in message
...
I saw a previous question for this, but I need help understanding the
formula.
I tried coping this formula, into A1, but--what do I need to change?
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,LEN(CELL("filename",A 1))-FIND("]",CELL("filename",A1)))


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 492
Default Formula for naming tabs

Good one Jim!
Alan.
"Jim Cone" wrote in message
...
The workbook must be saved.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)


"SharonJo"
wrote in message
I saw a previous question for this, but I need help understanding the
formula.
I tried coping this formula, into A1, but--what do I need to change?
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,LEN(CELL("filename",A 1))-FIND("]",CELL("filename",A1)))


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Formula for naming tabs

Yes, I was trying to find a formula to name a sheet tab so that whatever I
type in A1 would name the tab. I even tried =A1 in the tab itself
(desperation).
Macros scare me, because I have not idea where to start unless I am
recording a macro.

"Alan" wrote:

The formula looks like an answer to a specific question, what the original
question was is hard to say. It's series of text fomulas doing something,
not sure what!
What are you trying to achieve? You mention naming tabs, if you mean sheet
tabs, you can only do that manually or with VB code, a formula can't do
that.
Post back explaining what you want to do, I'm sure you'll get answers,
Regards,
Alan.
"SharonJo" wrote in message
...
I saw a previous question for this, but I need help understanding the
formula.
I tried coping this formula, into A1, but--what do I need to change?
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,LEN(CELL("filename",A 1))-FIND("]",CELL("filename",A1)))





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 492
Default Formula for naming tabs

One crude way to get you started, (do this in a new workbook),

Hit Alt and F11 to open the VB editor,
On the top toolbar hit 'Insert'
In the dropdown list hit 'Module', (not 'Class Module')
Copy and paste this into the empty window,

Sub NameSheet()
ActiveSheet.Name = ActiveSheet.Range("A1")
End Sub

Hit Alt and F11 together to close the VB editor, thats the Macro done.

Now type something into A1, click 'Tools' on the toolbar at the top, select
'Macro', to the left of the dropdown select 'Macros', in the box that
appears you'll see only one Macro called 'NameSheet'
Hit 'Run' and the sheet tab will change,

There are other way to do this with buttons, it can do it for you when you
open the sheet, or when you type something into A1, post back with what you
want it to do,

Regards,
Alan.
"SharonJo" wrote in message
...
Yes, I was trying to find a formula to name a sheet tab so that whatever I
type in A1 would name the tab. I even tried =A1 in the tab itself
(desperation).
Macros scare me, because I have not idea where to start unless I am
recording a macro.

"Alan" wrote:

The formula looks like an answer to a specific question, what the
original
question was is hard to say. It's series of text fomulas doing something,
not sure what!
What are you trying to achieve? You mention naming tabs, if you mean
sheet
tabs, you can only do that manually or with VB code, a formula can't do
that.
Post back explaining what you want to do, I'm sure you'll get answers,
Regards,
Alan.
"SharonJo" wrote in message
...
I saw a previous question for this, but I need help understanding the
formula.
I tried coping this formula, into A1, but--what do I need to change?
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,LEN(CELL("filename",A 1))-FIND("]",CELL("filename",A1)))




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 492
Default Formula for naming tabs

Forgot to mention, when you get to the dialogue box with the Macros in it
and hit run, at the bottom is a button marked 'Options'
Click that and it asks what key you want as a shortcut, so if you enter 'z'
for instance, hitting Crtl and z together will run it for you without having
to use any toolbars etc,
Regards,
Alan.
"Alan" wrote in message
...
One crude way to get you started, (do this in a new workbook),

Hit Alt and F11 to open the VB editor,
On the top toolbar hit 'Insert'
In the dropdown list hit 'Module', (not 'Class Module')
Copy and paste this into the empty window,

Sub NameSheet()
ActiveSheet.Name = ActiveSheet.Range("A1")
End Sub

Hit Alt and F11 together to close the VB editor, thats the Macro done.

Now type something into A1, click 'Tools' on the toolbar at the top,
select 'Macro', to the left of the dropdown select 'Macros', in the box
that appears you'll see only one Macro called 'NameSheet'
Hit 'Run' and the sheet tab will change,

There are other way to do this with buttons, it can do it for you when you
open the sheet, or when you type something into A1, post back with what
you want it to do,

Regards,
Alan.
"SharonJo" wrote in message
...
Yes, I was trying to find a formula to name a sheet tab so that whatever
I
type in A1 would name the tab. I even tried =A1 in the tab itself
(desperation).
Macros scare me, because I have not idea where to start unless I am
recording a macro.

"Alan" wrote:

The formula looks like an answer to a specific question, what the
original
question was is hard to say. It's series of text fomulas doing
something,
not sure what!
What are you trying to achieve? You mention naming tabs, if you mean
sheet
tabs, you can only do that manually or with VB code, a formula can't do
that.
Post back explaining what you want to do, I'm sure you'll get answers,
Regards,
Alan.
"SharonJo" wrote in message
...
I saw a previous question for this, but I need help understanding the
formula.
I tried coping this formula, into A1, but--what do I need to change?
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,LEN(CELL("filename",A 1))-FIND("]",CELL("filename",A1)))





  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Formula for naming tabs

That formula will not re-name a sheet tab.

All it does is place the sheet tab name into a cell.

If you stuck with your first question you would see a reply from Jim that sends
you to Ron de Bruin's site for where to place the code you posted earlier.

That was the correct code.


Gord Dibben MS Excel MVP

On Thu, 3 Apr 2008 17:27:00 -0700, SharonJo
wrote:

I saw a previous question for this, but I need help understanding the formula.
I tried coping this formula, into A1, but--what do I need to change?
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,LEN(CELL("filename",A 1))-FIND("]",CELL("filename",A1)))


  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Formula for naming tabs

WooHoo! Thank you, it works perfectly!
The only thing that I have not figured out is if I need to create this macro
in each of my workbooks or if there is some way to make it available in any
workbook!

"Alan" wrote:

Forgot to mention, when you get to the dialogue box with the Macros in it
and hit run, at the bottom is a button marked 'Options'
Click that and it asks what key you want as a shortcut, so if you enter 'z'
for instance, hitting Crtl and z together will run it for you without having
to use any toolbars etc,
Regards,
Alan.
"Alan" wrote in message
...
One crude way to get you started, (do this in a new workbook),

Hit Alt and F11 to open the VB editor,
On the top toolbar hit 'Insert'
In the dropdown list hit 'Module', (not 'Class Module')
Copy and paste this into the empty window,

Sub NameSheet()
ActiveSheet.Name = ActiveSheet.Range("A1")
End Sub

Hit Alt and F11 together to close the VB editor, thats the Macro done.

Now type something into A1, click 'Tools' on the toolbar at the top,
select 'Macro', to the left of the dropdown select 'Macros', in the box
that appears you'll see only one Macro called 'NameSheet'
Hit 'Run' and the sheet tab will change,

There are other way to do this with buttons, it can do it for you when you
open the sheet, or when you type something into A1, post back with what
you want it to do,

Regards,
Alan.
"SharonJo" wrote in message
...
Yes, I was trying to find a formula to name a sheet tab so that whatever
I
type in A1 would name the tab. I even tried =A1 in the tab itself
(desperation).
Macros scare me, because I have not idea where to start unless I am
recording a macro.

"Alan" wrote:

The formula looks like an answer to a specific question, what the
original
question was is hard to say. It's series of text fomulas doing
something,
not sure what!
What are you trying to achieve? You mention naming tabs, if you mean
sheet
tabs, you can only do that manually or with VB code, a formula can't do
that.
Post back explaining what you want to do, I'm sure you'll get answers,
Regards,
Alan.
"SharonJo" wrote in message
...
I saw a previous question for this, but I need help understanding the
formula.
I tried coping this formula, into A1, but--what do I need to change?
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,LEN(CELL("filename",A 1))-FIND("]",CELL("filename",A1)))






  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Formula for naming tabs

Place it in your Personal.xls so's it is available for all open workbooks.

See help on Personal Macro Workbook


Gord Dibben MS Excel MVP

On Fri, 4 Apr 2008 10:16:01 -0700, SharonJo
wrote:

WooHoo! Thank you, it works perfectly!
The only thing that I have not figured out is if I need to create this macro
in each of my workbooks or if there is some way to make it available in any
workbook!

"Alan" wrote:

Forgot to mention, when you get to the dialogue box with the Macros in it
and hit run, at the bottom is a button marked 'Options'
Click that and it asks what key you want as a shortcut, so if you enter 'z'
for instance, hitting Crtl and z together will run it for you without having
to use any toolbars etc,
Regards,
Alan.
"Alan" wrote in message
...
One crude way to get you started, (do this in a new workbook),

Hit Alt and F11 to open the VB editor,
On the top toolbar hit 'Insert'
In the dropdown list hit 'Module', (not 'Class Module')
Copy and paste this into the empty window,

Sub NameSheet()
ActiveSheet.Name = ActiveSheet.Range("A1")
End Sub

Hit Alt and F11 together to close the VB editor, thats the Macro done.

Now type something into A1, click 'Tools' on the toolbar at the top,
select 'Macro', to the left of the dropdown select 'Macros', in the box
that appears you'll see only one Macro called 'NameSheet'
Hit 'Run' and the sheet tab will change,

There are other way to do this with buttons, it can do it for you when you
open the sheet, or when you type something into A1, post back with what
you want it to do,

Regards,
Alan.
"SharonJo" wrote in message
...
Yes, I was trying to find a formula to name a sheet tab so that whatever
I
type in A1 would name the tab. I even tried =A1 in the tab itself
(desperation).
Macros scare me, because I have not idea where to start unless I am
recording a macro.

"Alan" wrote:

The formula looks like an answer to a specific question, what the
original
question was is hard to say. It's series of text fomulas doing
something,
not sure what!
What are you trying to achieve? You mention naming tabs, if you mean
sheet
tabs, you can only do that manually or with VB code, a formula can't do
that.
Post back explaining what you want to do, I'm sure you'll get answers,
Regards,
Alan.
"SharonJo" wrote in message
...
I saw a previous question for this, but I need help understanding the
formula.
I tried coping this formula, into A1, but--what do I need to change?
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,LEN(CELL("filename",A 1))-FIND("]",CELL("filename",A1)))









  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 492
Default Formula for naming tabs

Glad you got it working,

Yes you can make it available in any workbook, you need to put it into your
Personal.xls file.

An easy way to do this is to record a new macro from 'Tools' 'Macro'
Record New Macro'
The dialogue box will appear telling you it's Macro1, just below that is
another drop down box marked 'Store macro in : '
This will be saying 'This Woorkbook'. Change that to 'Personal Macro
Workbook' OK
Now do something, doesn't matter what, enter BBB into B1 for example, then
stop recording the macro.

Hit Alt and F11 to open the VB Editor,
On the top left you'll see an icon labeled 'VBAProject(Personal.XLS), click
that,
Below that will be a folder icon marked 'Modules'
Open that, (if its not already open) and you'll see 'Module1'
Double click that and you should see the code you just recorded,
Delete all of that so the window is empty and copy and paste this into it :-

Sub NameSheet()
If ActiveSheet.Range("A1") = "" Then Exit Sub
ActiveSheet.Name = ActiveSheet.Range("A1")
End Sub

(The extra line's there to avoid an error message if you run the macro with
A1 empty)

Close the VB Editor, save the file and that macro will be available in all
workbooks. There's no need to keep that file, you can delete it once saved.

To put the shortcut back, do as you did before, hit the Options button in
the Macro dialogue box and select the letter you want to use,

Regards,
Alan.

"SharonJo" wrote in message
...
WooHoo! Thank you, it works perfectly!
The only thing that I have not figured out is if I need to create this
macro
in each of my workbooks or if there is some way to make it available in
any
workbook!

"Alan" wrote:

Forgot to mention, when you get to the dialogue box with the Macros in it
and hit run, at the bottom is a button marked 'Options'
Click that and it asks what key you want as a shortcut, so if you enter
'z'
for instance, hitting Crtl and z together will run it for you without
having
to use any toolbars etc,
Regards,
Alan.
"Alan" wrote in message
...
One crude way to get you started, (do this in a new workbook),

Hit Alt and F11 to open the VB editor,
On the top toolbar hit 'Insert'
In the dropdown list hit 'Module', (not 'Class Module')
Copy and paste this into the empty window,

Sub NameSheet()
ActiveSheet.Name = ActiveSheet.Range("A1")
End Sub

Hit Alt and F11 together to close the VB editor, thats the Macro done.

Now type something into A1, click 'Tools' on the toolbar at the top,
select 'Macro', to the left of the dropdown select 'Macros', in the box
that appears you'll see only one Macro called 'NameSheet'
Hit 'Run' and the sheet tab will change,

There are other way to do this with buttons, it can do it for you when
you
open the sheet, or when you type something into A1, post back with what
you want it to do,

Regards,
Alan.
"SharonJo" wrote in message
...
Yes, I was trying to find a formula to name a sheet tab so that
whatever
I
type in A1 would name the tab. I even tried =A1 in the tab itself
(desperation).
Macros scare me, because I have not idea where to start unless I am
recording a macro.

"Alan" wrote:

The formula looks like an answer to a specific question, what the
original
question was is hard to say. It's series of text fomulas doing
something,
not sure what!
What are you trying to achieve? You mention naming tabs, if you mean
sheet
tabs, you can only do that manually or with VB code, a formula can't
do
that.
Post back explaining what you want to do, I'm sure you'll get
answers,
Regards,
Alan.
"SharonJo" wrote in message
...
I saw a previous question for this, but I need help understanding
the
formula.
I tried coping this formula, into A1, but--what do I need to
change?
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,LEN(CELL("filename",A 1))-FIND("]",CELL("filename",A1)))







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
naming tabs steve Excel Worksheet Functions 2 December 1st 07 08:15 PM
Naming tabs Mike Excel Worksheet Functions 5 November 27th 07 05:04 PM
Naming Spreadsheet Tabs Ellen G Excel Discussion (Misc queries) 3 September 18th 07 07:48 AM
Naming Tabs ebro Excel Discussion (Misc queries) 3 July 13th 06 11:07 PM
naming tabs Jeff Excel Worksheet Functions 8 February 6th 06 04:41 AM


All times are GMT +1. The time now is 01:52 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"