+ Reply to Thread
Results 1 to 4 of 4

Append a Tab Name

  1. #1
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Append a Tab Name

    I'm using this code to name tabs in a workbook when being a sinlge Workbook is split into multiple Worksheets:

    Please Login or Register  to view this content.
    Wat is the correct syntax to use if I want to append the filename, for example, if I wanted to add 'ABC' at the start of each tab name or 'XYZ' at the end of each tab name, whilst maintaining the 31 characcter limit?

    Many thanks

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Append a Tab Name

    I would assume you would change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Append a Tab Name

    Does

    Left(ThisWorkbook.Name & MyArr(Itm),31)

    work?

    I like yudlugar's answer better. It seems you are simply asking how to append a string together before trimming it to 31 character length.??

    I'm not sure I understand the entire question...
    Last edited by MarvinP; 06-04-2013 at 11:01 AM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Append a Tab Name

    Hi yudlugar,

    That's exactly what I had previously tried, but realise now I put the "ABC " & in the wrong place. All working now, many thanks...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1