+ Reply to Thread
Results 1 to 4 of 4

Paste as Values vba

  1. #1
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Paste as Values vba

    Hi I have code below which copies data from one sheet and pastes to the select other sheet.

    How can I get this code to paste in values only??

    sub CopyPaste()
    Dim ws As Worksheet
    For Each ws In Worksheets

    If ws.Name <> "Sheet1" Then

    ws.Application.Run "Macro1"
    End If
    Next
    End Sub

    Sub Macro1()
    Range("A2:B13").Select
    Selection.Copy
    Sheets("sheet2").Select
    ActiveSheet.Paste
    End Sub

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Paste as Values vba

    try this

    Please Login or Register  to view this content.
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

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

    Re: Paste as Values vba

    You need cell reference to paste, you can not paste in to active cell.

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Re: Paste as Values vba

    Thank you very much, helped a great deal.

+ 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] Excel 2010 - Paste Values with Paste Transpose at the same time
    By phillyfilly in forum Excel General
    Replies: 3
    Last Post: 11-05-2013, 04:23 AM
  2. [SOLVED] Changing Current Code from Paste Formulas to Paste Values
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-24-2013, 12:33 PM
  3. Replies: 1
    Last Post: 12-05-2012, 11:37 AM
  4. [SOLVED] Excel 2002 - Can only paste values, wont let me paste special
    By MK_Chopper_P in forum Excel General
    Replies: 2
    Last Post: 07-12-2012, 02:22 AM
  5. Replies: 2
    Last Post: 04-12-2011, 09:46 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