The code below works fine to open another workbook, copy data, then paste into the original file. However, I need to paste only values. I have tried a couple different ways of doing it after the fact (ie after pasting data formulas and all), but nothing has worked and I would prefer to just paste values initially.
Can anyone tell me how to alter the code below to only paste values?
Can anyone tell me how to alter the code below to only paste values?
Code:
On Error GoTo ErrorHandler
Application.Workbooks.Open Filename:=Range("FILEPATH"), Password:=("yobaby3")
Dim rCopy As Range
Dim rPaste As Range
Set rCopy = Range("RANGE_DETAIL")
Application.Workbooks("Rebuild 11").Activate
Set rPaste = Range("Detail_Paste_Range")
rPaste.Clear
rCopy.Copy rPaste