+ Reply to Thread
Results 1 to 7 of 7

Copy formula value from one sheet and paste value only to another sheet

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    Copy formula value from one sheet and paste value only to another sheet

    Hello all. Below is a snippet I need help with. I looked through the Forum and tried the suggestions as indicated below, but none of them work. The formula is located in cells on the ("Uniform Order Sheet") and I want only the VALUE copied and pasted to the ("UniformBuild") sheet. The suggestions popup various errors. I think it may just the position of the PASTE section if the line that is the issue but I have tried without success to move it.

    With Sheets("Uniform Order Sheet")
        .Range("AA" & Rw).Copy Sheets("UniformBuild").Range("T8").PasteSpecial xlValues
        .Range("AF" & Rw).Copy Sheets("UniformBuild").Range("T9").PasteSpecial Paste:=xlPasteValues
        .Range("AK" & Rw).Copy Sheets("UniformBuild").Range("T10").PasteSpecial xlPasteValues
        .Range("AP" & Rw).Copy Sheets("UniformBuild").Range("T11").Value = .Value
    End With
    Thanks,
    Andrew
    Last edited by drewship; 06-20-2013 at 09:29 AM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy formula value from one sheet and paste value only to another sheet

    Should be on a separate lines

    With Sheets("Uniform Order Sheet")
        .Range("AA" & Rw).Copy
        Sheets("UniformBuild").Range("T8").PasteSpecial xlValues
        .Range("AF" & Rw).Copy
        Sheets("UniformBuild").Range("T9").PasteSpecial Paste:=xlPasteValues
        .Range("AK" & Rw).Copy
        Sheets("UniformBuild").Range("T10").PasteSpecial xlPasteValues
        .Range("AP" & Rw).Copy
        Sheets("UniformBuild").Range("T11").PasteSpecial xlPasteValues
    Last edited by AB33; 06-20-2013 at 09:36 AM.

  3. #3
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    Re: Copy formula value from one sheet and paste value only to another sheet

    Is any one of them better than the others? This will be repeated hundreds of times so I want the fastest/best option.

    Thanks,
    Andrew

  4. #4
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    Re: Copy formula value from one sheet and paste value only to another sheet

    We posted at the same time so I will assume you posted the most effecient method.

    Thanks AB33!!

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy formula value from one sheet and paste value only to another sheet

    Most likely

    With Sheets("Uniform Order Sheet")
        .Range("AA" & Rw).Copy
        Sheets("UniformBuild").Range("T" & Rows.Count).End(xlUp).Offset(1).PasteSpecial xlValues
        .Range("AF" & Rw).Copy
         Sheets("UniformBuild").Range("T" & Rows.Count).End(xlUp).Offset(1).PasteSpecial xlValues
        .Range("AK" & Rw).Copy
        Sheets("UniformBuild").Range("T" & Rows.Count).End(xlUp).Offset(1).PasteSpecial xlValues
        .Range("AP" & Rw).Copy
        Sheets("UniformBuild").Range("T" & Rows.Count).End(xlUp).Offset(1).PasteSpecial xlValues

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy formula value from one sheet and paste value only to another sheet

    Andrew,
    You should use the second one as it looks at the next empty row in column T while the first one pastes in to a fixed row.

  7. #7
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    Re: Copy formula value from one sheet and paste value only to another sheet

    Got it, thanks again!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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