Results 1 to 6 of 6

Match and paste values

Threaded View

  1. #1
    Registered User
    Join Date
    07-22-2011
    Location
    Shipley, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question Match and paste values

    I have the following code which works well. What I would like is to be able to paste the values of the copied ranges only; is this possible?

    Sub test()
    Application.ScreenUpdating = False
    Dim rCell As Range
    For Each rCell In Sheets("Report").Rows(1).SpecialCells(xlCellTypeConstants).
    On Error Resume Next
    With Sheets("Year 6")
    .Columns(Application.Match(rCell, .Rows(5), 0)).Copy rCell
    End With
    Next rCell
    Application.ScreenUpdating = True
    End Sub
    Attached Files Attached Files
    Last edited by Bagman; 07-26-2011 at 03:33 AM. Reason: File Added

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