Closed Thread
Results 1 to 8 of 8

Naming Worksheet tabs

  1. #1
    Registered User
    Join Date
    04-03-2009
    Location
    yorkshire
    MS-Off Ver
    Office 365
    Posts
    87

    Naming Worksheet tabs

    Is it possible to name a worksheet tab from a cell reference on a worksheet?

  2. #2
    Registered User
    Join Date
    01-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    67

    Re: Naming Worksheet tabs

    Assuming A1 has the name, try this macro in module:

    Sub worksheetrename()

    ActiveSheet.Name = Range("A1")

    End Sub

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

    Re: Naming Worksheet tabs

    see if link helps

    http://www.mcgimpsey.com/excel/event...efromcell.html

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

    Re: Naming Worksheet tabs

    c_m,


    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    VBA Noob

  5. #5
    Registered User
    Join Date
    04-03-2009
    Location
    yorkshire
    MS-Off Ver
    Office 365
    Posts
    87

    Re: Naming Worksheet tabs

    Hi
    I set up a module - ActiveSheet.Name = Range("A1") but it relates to a single worksheet. How do i use the same Module for every worksheet without recreating a module for every sheet?

    Thanks

  6. #6
    Registered User
    Join Date
    04-03-2009
    Location
    yorkshire
    MS-Off Ver
    Office 365
    Posts
    87

    Re: Naming Worksheet tabs

    Thanks for that

  7. #7
    Registered User
    Join Date
    04-03-2009
    Location
    yorkshire
    MS-Off Ver
    Office 365
    Posts
    87

    Re: Naming Worksheet tabs

    As i cannot edit first post please can someone mark it solved

    Thanks

Closed 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