Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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... |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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... |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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... |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Use a password in VBA ActiveSheet.protect & ActiveSheet.unprotect? | Excel Programming | |||
Copying new activesheet after other activesheet is hidden? | Excel Programming | |||
ActiveSheet.Name? | Excel Programming | |||
ActiveSheet | Excel Programming | |||
ActiveSheet | Excel Programming |