Results 1 to 2 of 2

Thread: Copy and paste values and formats
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular
    Join Date
    Jun 2016
    Posts
    117
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Copy and paste values and formats

    Hello,

    I have below piece of code in sub that copy a range and paste the selected in another range, it works fine but how can I make it to copy and paste the selected as values and formats

    I tried to use ".Paste" but I got an error

    Code:
      Sheet2.Range("Sales_List_All").Copy
      Sheet2.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues

  2. #2
    Board Regular Akuini's Avatar
    Join Date
    Feb 2016
    Location
    Indonesia
    Posts
    2,042
    Post Thanks / Like
    Mentioned
    35 Post(s)
    Tagged
    4 Thread(s)

    Default Re: Copy and paste values and formats

    Try:

    Code:
    Sheet2.Range("Sales_List_All").Copy
    With Sheet2.Cells(Rows.count, 1).End(xlUp).Offset(1, 0)
      .PasteSpecial xlPasteValues
      .PasteSpecial xlPasteFormats
    End With

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •