Consulting

Results 1 to 3 of 3

Thread: Solved: how to paste only value since there r some fuction in cells

  1. #1

    Solved: how to paste only value since there r some fuction in cells

    hi
    how to paste only value since there r some fuction in cells

    [VBA]With ws
    If .Name <> "Report" Then
    .Range("A1:C1").Copy Destination:=Sheets("Month Total").Range("A" & Rows.Count).End(xlUp).Offset(1) _

    .Range("A1:C1").PasteSpecial xlPasteValues
    End If
    End With[/VBA]

    this code give me the run time error 1004
    "past-special method of range class failed"

    thanks for any help

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,875
    try:[VBA]With ws
    If .Name <> "Report" Then
    Sheets("Month Total").Range("A" & Rows.Count).End(xlUp).Offset(1).Resize(, 3) = .Range("A1:C1").Value
    End If
    End With
    [/VBA]
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3
    thanks p45cal
    it works

Posting Permissions

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