+ Reply to Thread
Results 1 to 5 of 5

Macro to Copy Range to New Worksheet, and Name Worksheet after Range

  1. #1
    Registered User
    Join Date
    04-28-2015
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365
    Posts
    61

    Macro to Copy Range to New Worksheet, and Name Worksheet after Range

    I need a macro to copy a range to a new worksheet and name the new worksheet by first doubleclicking on a cell in that range that i need copied.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Macro to Copy Range to New Worksheet, and Name Worksheet after Range

    .
    The easiest method I can think of is to paste the following into the ThisWorkBook module :

    Please Login or Register  to view this content.
    Then, using the existing COPY command by RIGHT CLICKING the sheet and selecting COPY ...

    First highlight the range you want to copy ... right click the selection and choose COPY.
    Select the sheet you want to paste to ... right click and choose PASTE beginning in the first cell of the sheet where you want the data pasted.

    Now, select the cell with the data that you want to use to name the Sheet Tab. Double Click the cell and the sheet name automatically changes.

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Macro to Copy Range to New Worksheet, and Name Worksheet after Range

    Hi qwertyyy

    Are these Named Ranges you're referring to?
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Registered User
    Join Date
    04-28-2015
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365
    Posts
    61

    Re: Macro to Copy Range to New Worksheet, and Name Worksheet after Range

    Yes they are , I have a schedule of rates SOR with quite a lot of Sections and Pay items , Its way to hard to put all the quantity calculations on the one schedule of rates. So i usually copy each Section to a Sheet , do the calculations on that sheet and link it back to the Schedule of Rates Front Sheet. It Would be much easier if i could put all the sections on the SOR into named ranges then I could just double click on each pay Item Section Number and a macro could copy that Named Range its in to a new sheet and then rename the sheet after the number I clicked on.

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Macro to Copy Range to New Worksheet, and Name Worksheet after Range

    Hi qwertyyy

    We can work with Named Ranges. It'll be helpful if I can see what you have and what you wish to do. Please attach a sample workbook the Structure of which is the same as your actual workbook.

    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.

    INCLUDE ANY CODE YOU'RE USING OR HAVE TRIED.

    Remember to desensitize the data.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

+ 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. [SOLVED] Loop worksheets Copy range and Paste in LastUsedCell in first worksheet, delete Worksheet
    By Simone Fick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2017, 10:01 AM
  2. Macro to copy filtered range to a new worksheet
    By PaulaGon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-03-2017, 09:45 AM
  3. VBA Match Cell Range to Worksheet Name and copy/paste to respective worksheet
    By rlsublime in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-24-2014, 04:06 PM
  4. MACRO to copy row range from database worksheet to a specified worksheet
    By ALNER in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2014, 03:19 PM
  5. Replies: 3
    Last Post: 09-08-2013, 06:38 PM
  6. [SOLVED] macro error Copy Time format to other Worksheet and continues copy range
    By feroguz in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-25-2012, 01:30 PM
  7. Macro to copy a range of cells to another worksheet
    By jonnyuk3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2008, 08:48 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