+ Reply to Thread
Results 1 to 5 of 5

Macro to create a sheet and paste that sheets name in a specific cell

  1. #1
    Registered User
    Join Date
    05-08-2019
    Location
    Florida
    MS-Off Ver
    2016
    Posts
    6

    Macro to create a sheet and paste that sheets name in a specific cell

    Hello everyone,

    I currently have a macro that creates copies of a template sheet based on the information put in column B on my main tab, so if I have four cells in column B with data, it creates four tabs all named with the information in each of those cells. The problem I'm facing is that I need that name to also be in a cell on the tab and I'm not sure how to do this with a macro. I have a formula that does it but with large clients I end up with a ton of formulas connected to this one formula, which is volatile, and the spreadsheet gets very slow since every formula has to recalculate. So what I need is either:
    1: add a line to my macro (below) that also takes the name it gives to the tab and puts it in a cell as well, or
    2: a second macro that will take that formula that is pulling the sheet name, which will be in the same spot on each visible sheet, copy it, and paste as value in another cell on the same sheet, which I could then have my formulas linked to.

    Any help would be appreciated.

    Here is my macro to create and name the sheets.

    Please Login or Register  to view this content.
    Last edited by Jhoov326; 05-08-2019 at 08:05 AM.

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Macro to create a sheet and paste that sheets name in a specific cell

    Hi Jhoov326,

    If I understand correctly, you want the name of the new sheet placed in a cell on that new sheet?

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro to create a sheet and paste that sheets name in a specific cell

    Presumably

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    05-08-2019
    Location
    Florida
    MS-Off Ver
    2016
    Posts
    6

    Re: Macro to create a sheet and paste that sheets name in a specific cell

    Quote Originally Posted by Arkadi View Post
    Hi Jhoov326,

    If I understand correctly, you want the name of the new sheet placed in a cell on that new sheet?

    Please Login or Register  to view this content.
    That worked perfectly! Thanks for the help Arkadi and Richard!

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Macro to create a sheet and paste that sheets name in a specific cell

    Glad we could help

+ 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. Create Sheets, separate records, copy-paste cell values from master to created sheets
    By hishamezzat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-19-2018, 05:31 PM
  2. Replies: 11
    Last Post: 10-19-2016, 10:47 PM
  3. [SOLVED] Macro to create new sheets named from cell in primary sheet
    By JacksonElliot in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 07-12-2015, 10:07 PM
  4. [SOLVED] Macro to copy a specific cell and paste in another cell, for all sheets in workbook
    By lyoung1124 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-02-2014, 10:15 AM
  5. Replies: 17
    Last Post: 02-01-2013, 12:20 PM
  6. Replies: 0
    Last Post: 11-15-2012, 09:51 AM
  7. macro to copy specific data from one sheet and paste into two sheets
    By Shogun in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-26-2009, 04:56 AM

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