+ Reply to Thread
Results 1 to 5 of 5

Macro to copy rows 1:6 to a new workheet after active sheet and paste only values.

  1. #1
    Registered User
    Join Date
    07-19-2017
    Location
    united states
    MS-Off Ver
    2007
    Posts
    31

    Macro to copy rows 1:6 to a new workheet after active sheet and paste only values.

    Hi.

    I am try to create a macro that copy the data from rows 1:6 on Sheet1 and paste only values (no functions,formulas,etc.) to new sheet after Sheet1. Should make a new sheet everytime so everytime i run it, it will create a new sheet and the values will be saved. If possible i want to name the new sheet what the contents are in cell B2.

    I keep running into issue when i try to name the new spread sheet the contents in B2. I can copy values too, but it keeps functions and therefore defeats the purpose why i want to paste only values in new sheet. if someone could write a VBA code for what I am trying to do, you will make my day!!! Thanks in advance for any help!!!

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,815

    Re: Macro to copy rows 1:6 to a new workheet after active sheet and paste only values.

    Try:
    Please Login or Register  to view this content.
    Make sure you change the value of B2 before each time you run the macro.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Macro to copy rows 1:6 to a new workheet after active sheet and paste only values.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Registered User
    Join Date
    07-19-2017
    Location
    united states
    MS-Off Ver
    2007
    Posts
    31

    Re: Macro to copy rows 1:6 to a new workheet after active sheet and paste only values.

    Sorry for getting back to you so late... Thanks for such a quick response!

    Worked like a charm! thanks man!

  5. #5
    Registered User
    Join Date
    07-19-2017
    Location
    united states
    MS-Off Ver
    2007
    Posts
    31

    Re: Macro to copy rows 1:6 to a new workheet after active sheet and paste only values.

    thanks for adding the msg box upon error. didn't even think to do that either.... its the little things. lol

    Thanks. will be adding a msg box for err as well.

    everybody in these forums are amazing.

+ 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: 0
    Last Post: 09-17-2017, 06:30 PM
  2. Macro: Copy Active Sheet, Make Values Only, then Save Copy
    By brendangroff in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-10-2015, 04:34 PM
  3. Replies: 3
    Last Post: 07-16-2015, 09:29 AM
  4. Replies: 2
    Last Post: 03-18-2015, 05:31 AM
  5. Macro to copy rows based on moving date and paste the rows into an identical sheet
    By ivandc1234 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2014, 11:59 AM
  6. Replies: 1
    Last Post: 01-07-2013, 12:23 AM
  7. Copy from active sheet and paste into new sheet using info from cell in active
    By Ingve in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-23-2006, 06:00 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