ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   ActiveSheet.Name (https://www.excelbanter.com/excel-programming/423723-activesheet-name.html)

EXCELMACROS

ActiveSheet.Name
 
Hello,

I appreciate if someone can help me with a function that grabs only a
portion of the sheet name. For example, I'm using

ActiveCell = ActiveSheet.Name, then I'm using formula colname =right(mycell,5)

is there a way that I don't have to put the name of the sheet in the SS,
just grab it directly from the tab and storage it ?

Thank you,
--
Thank you...

joel

ActiveSheet.Name
 
You c an use a simple UDF

call with =GetTab()



Function GetTab()

GetTab = ActiveSheet.Name

End Function

"EXCELMACROS" wrote:

Hello,

I appreciate if someone can help me with a function that grabs only a
portion of the sheet name. For example, I'm using

ActiveCell = ActiveSheet.Name, then I'm using formula colname =right(mycell,5)

is there a way that I don't have to put the name of the sheet in the SS,
just grab it directly from the tab and storage it ?

Thank you,
--
Thank you...


EXCELMACROS

ActiveSheet.Name
 
Thank you, from there I'm actually doing the following and it is working
without having to print the tab in the actuall SS

myinfo = Mid(ActiveSheet.Name, 19, Len(ActiveSheet.Name) - 23)

thanks a lot
--
Thank you...


"Joel" wrote:

You c an use a simple UDF

call with =GetTab()



Function GetTab()

GetTab = ActiveSheet.Name

End Function

"EXCELMACROS" wrote:

Hello,

I appreciate if someone can help me with a function that grabs only a
portion of the sheet name. For example, I'm using

ActiveCell = ActiveSheet.Name, then I'm using formula colname =right(mycell,5)

is there a way that I don't have to put the name of the sheet in the SS,
just grab it directly from the tab and storage it ?

Thank you,
--
Thank you...


joel

ActiveSheet.Name
 
You don't need the len ght in the formula. The worksheet function MID
requires a lenght, when you use MID in a macro the length parameter is
optional

myinfo = Mid(ActiveSheet.Name, 19)


"EXCELMACROS" wrote:

Thank you, from there I'm actually doing the following and it is working
without having to print the tab in the actuall SS

myinfo = Mid(ActiveSheet.Name, 19, Len(ActiveSheet.Name) - 23)

thanks a lot
--
Thank you...


"Joel" wrote:

You c an use a simple UDF

call with =GetTab()



Function GetTab()

GetTab = ActiveSheet.Name

End Function

"EXCELMACROS" wrote:

Hello,

I appreciate if someone can help me with a function that grabs only a
portion of the sheet name. For example, I'm using

ActiveCell = ActiveSheet.Name, then I'm using formula colname =right(mycell,5)

is there a way that I don't have to put the name of the sheet in the SS,
just grab it directly from the tab and storage it ?

Thank you,
--
Thank you...



All times are GMT +1. The time now is 03:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com