Results 1 to 3 of 3

Change code to paste as special (values)

Threaded View

  1. #1
    Registered User
    Join Date
    07-29-2014
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    2

    Change code to paste as special (values)

    Hello I have the following code below that copies and pastes values to a destination. How do I set it up so that it pastes special (values)?

    For i = LBound(varSheets) To UBound(varSheets)
       With Sheets(varSheets(i))
         lastRow = .Range("A" & Rows.Count).End(xlUp).Row
         .Range("A2" & ":G" & lastRow).Copy Destination:= _
             ThisWorkbook.Worksheets("Test").Range("A" & Rows.Count).End(xlUp)(2)
       End With
    Next
    Last edited by zipaway; 07-29-2014 at 10:06 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Paste special values from one sheet to another using VBA code in excel
    By chavanalini in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-12-2013, 08:31 AM
  2. VBA code to open new workbook and copy and paste special values
    By oddinho2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2013, 11:24 PM
  3. [SOLVED] Set code copy and paste special values
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-25-2012, 08:52 PM
  4. [SOLVED] Code for Copy and Paste Special- Values in Columns
    By gautamacharya in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-23-2012, 04:51 PM
  5. Paste special as values code not working?
    By HelenW in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-05-2008, 08:03 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