I am trying to copy a range across workbooks however I have formulas in the destination workbook that when I copy range across get deleted below is my code how would I implement the "PasteSpecial xlPasteValues" ? thanks very much for your time.
Code:
<strike></strike>
Code:
Code:
Sub ShowAll
Dim mydata As String
mydata = "='C:\Test\[Quick Test.xlsm]Companies'!$A$2:$W$79"
'link to worksheet
With ThisWorkbook.Worksheets(1).Range("A5:W79")
.Formula = mydata
'convert formula to text
.Value = .Value
End With
End Sub