Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default 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...
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default 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...

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default 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...

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default 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...

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
Use a password in VBA ActiveSheet.protect & ActiveSheet.unprotect? Jim K. Excel Programming 2 June 2nd 08 08:09 PM
Copying new activesheet after other activesheet is hidden? Simon Lloyd[_790_] Excel Programming 1 June 20th 06 10:02 AM
ActiveSheet.Name? Andrew Stedman Excel Programming 5 July 30th 03 01:17 PM
ActiveSheet Graham[_3_] Excel Programming 0 July 30th 03 09:08 AM
ActiveSheet Graham[_3_] Excel Programming 0 July 29th 03 04:47 PM


All times are GMT +1. The time now is 02:58 AM.

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"