+ Reply to Thread
Results 1 to 4 of 4

Automatically name sheet within range

  1. #1
    Registered User
    Join Date
    01-16-2019
    Location
    London, England
    MS-Off Ver
    365 MSO 32-bit
    Posts
    11

    Automatically name sheet within range

    Hi all,

    I am an absolute beginner on Macros and have barely made my first coding work (thanks to this forum).

    I wanted to name Sheets automatically which with below code works so long there's a name in the sheet in cell A1.

    Please Login or Register  to view this content.
    Problem is that if I add a new sheet and forget to put a name in A1 the code doesn't work, and I only want the automatic naming to occur for specific sheets.
    All these sheets I want to be named automatically are between sheets named "Start" and "End" - meaning all the sheets in between "Start" and "End" I would want to have their names updated as the code above does, but for any sheet that falls outside of this range the name should remain unchanged.

    Hopefully my request is clear enough and any help is greatly appreciated.

    Many thanks
    Lucas

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,709

    Re: Automatically name sheet within range

    Hi & welcome to the board
    How about
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-16-2019
    Location
    London, England
    MS-Off Ver
    365 MSO 32-bit
    Posts
    11

    Re: Automatically name sheet within range

    You are the name, that works like a charm.

    Thanks a lot for your help!

    /Lucas

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,709

    Re: Automatically name sheet within range

    You're welcome & thanks for the feedback

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 10-19-2015, 11:33 AM
  2. Replies: 6
    Last Post: 09-22-2014, 05:57 AM
  3. [SOLVED] How to Automatically Copy New Data into the next sheet and have it automatically sorted??
    By ReedDOT in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-24-2013, 10:50 AM
  4. Change the line graph range in Excel 2007 automatically without changing the data range
    By vinuhm@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-21-2013, 05:26 AM
  5. Automatically naming a range on each sheet in VBA
    By iamrickdeans in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2013, 11:58 PM
  6. [SOLVED] copy range of cells automatically to different range evry hr
    By Sarangsood in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-24-2011, 03:46 AM
  7. Replies: 4
    Last Post: 03-16-2010, 08:03 PM

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