+ Reply to Thread
Results 1 to 7 of 7

Macro to create new sheets and naming them after values in column in Sheet1

  1. #1
    Forum Contributor
    Join Date
    10-17-2014
    Location
    EU
    MS-Off Ver
    2013
    Posts
    114

    Macro to create new sheets and naming them after values in column in Sheet1

    I would need a macro that loops through column (eg. "D") in Sheet1, and creates new sheets (same workbook) and names them after each value in column D. Values might be repeating so once sheet name exists it doesn't do anything.

    Thank you.


    Figured out adding unique sheets.

    Now I would like to add on each added sheet specific first row (categories).

    .....A......B..........C.......D........E.....
    ..car...engine...speed...cost.....total..

    Any ideas?
    Last edited by Tona; 11-10-2014 at 02:56 AM.

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Macro to create new sheets and naming them after values in column in Sheet1

    try this

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Macro to create new sheets and naming them after values in column in Sheet1

    Something like this u r looking for...
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Macro to create new sheets and naming them after values in column in Sheet1

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    10-17-2014
    Location
    EU
    MS-Off Ver
    2013
    Posts
    114

    Re: Macro to create new sheets and naming them after values in column in Sheet1

    Thank you for replies. Works well!

    Actually I would need to copy from one sheet range A1:G6 and paste special (range contains formulas, conditional formatting,..) to all added sheets.

    Sorry for confusion.

  6. #6
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Macro to create new sheets and naming them after values in column in Sheet1

    Try this attached file
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    10-17-2014
    Location
    EU
    MS-Off Ver
    2013
    Posts
    114

    Re: Macro to create new sheets and naming them after values in column in Sheet1

    Thank you for solution.
    Would you be kind and explain the macro please.

+ 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. How to create a column with same position values on different sheets?
    By Exellent in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-02-2013, 03:29 PM
  2. =+Sheet1!A1+Sheet1!B1+Sheet1!C1 macro to convert all linked ref to Values
    By chriszoma in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-20-2013, 02:44 PM
  3. Copy certain data from Sheet1 to Sheet 2 based on values in a column on Sheet1
    By theglitch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2013, 01:28 PM
  4. VBA Macro to Create Sheets Based on Column of Values
    By chicagoland8 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2012, 11:39 AM
  5. Create Sheets based on unique values in Column
    By Hblbs in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-20-2009, 08:25 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