I have a piece of vba code which is copying and pasting to another sheet. the copy and paste is working as I have tested to make sure by overtyping the formula with text to check.
If ActiveCell.Value <> "" Then
ActiveCell.Offset(1, -4).Copy Destination:=Workbooks(FSN & "." & "HDR").Worksheets(2).Range("b11")
My problem is I cannot get this to do a paste special. I have tried adding the two alternatives below to the end of the script based on advice that I have found on the Internet but I keep getting the following error: compile error expected end of statement
Range("b11").PasteSpecial Paste:=xlPasteValues
Range("b11").PasteSpecial PasteValues
Can anyone help me out please?
Kind regards
If ActiveCell.Value <> "" Then
ActiveCell.Offset(1, -4).Copy Destination:=Workbooks(FSN & "." & "HDR").Worksheets(2).Range("b11")
My problem is I cannot get this to do a paste special. I have tried adding the two alternatives below to the end of the script based on advice that I have found on the Internet but I keep getting the following error: compile error expected end of statement
Range("b11").PasteSpecial Paste:=xlPasteValues
Range("b11").PasteSpecial PasteValues
Can anyone help me out please?
Kind regards