+ Reply to Thread
Results 1 to 4 of 4

Copy Sheets with Cell Name (Different Sheets)

  1. #1
    Registered User
    Join Date
    02-06-2013
    Location
    Mexico
    MS-Off Ver
    MS Office 2016
    Posts
    95

    Copy Sheets with Cell Name (Different Sheets)

    Hello Experts!

    I'm trying to create a macro to "Copy & Rename" certain sheets of the workbook based on a Cell Value.

    Attached you will find 5 Sheets (Name 1, 2...5) i want to copy them based on a column values "D" (Sheetname) and rename with column "C" values.

    I try with an "IF" but i can only copy the first one... not the rest.

    Attached you will find the excel file with the macro... I appreciate if some one can help me with a "FOR" statement or an optimal way to do it

    File Download Link: https://drive.google.com/open?id=17w...js7xqGu8eFApGY
    Last edited by pacosalasv; 12-13-2019 at 02:22 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Copy Sheets with Cell Name (Different Sheets)

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    02-06-2013
    Location
    Mexico
    MS-Off Ver
    MS Office 2016
    Posts
    95

    Re: Copy Sheets with Cell Name (Different Sheets)

    I cant directly upload for some reason, here is the download link (*.zip) with both files (Original and Expected result)

    https://drive.google.com/open?id=17w...js7xqGu8eFApGY

    I appreciate your help and support.
    Last edited by pacosalasv; 12-13-2019 at 11:09 AM.

  4. #4
    Registered User
    Join Date
    02-06-2013
    Location
    Mexico
    MS-Off Ver
    MS Office 2016
    Posts
    95

    Re: Copy Sheets with Cell Name (Different Sheets)

    Solved!

    Macro:

    Please Login or Register  to view this content.

+ 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. [SOLVED] Copy Paste From Rawdata Sheets to Multiple Sheets Based on Sheet names
    By farrukh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-16-2017, 11:01 PM
  3. Create New Sheets, Copy New Sheets & Name New Sheets - §8-O
    By Gtrtim112 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-26-2016, 10:58 PM
  4. [SOLVED] Create Sheets and copy rows to the Sheets if cell contains sheet names
    By CRIMEDOG in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-08-2015, 08:06 AM
  5. Macro that will copy from one cell across all sheets except for three sheets.
    By glide2131 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-07-2013, 09:49 PM
  6. [SOLVED] Excel vba copy data from general sheets and organize them in separate sheets.
    By excelsubb in forum Excel Programming / VBA / Macros
    Replies: 40
    Last Post: 01-24-2013, 08:01 AM
  7. Copy specific cell from multiple sheets to summary - excluding some sheets
    By kabammi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2012, 09:27 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