question

joefews-3956 avatar image
0 Votes"
joefews-3956 asked JiachenLiMFST-9349 edited

how to do i copy without it copying the formulae in VBA?

 ThisWorkbook.Sheets("1042 DTS").Activate
 Range("A11").Formula2 = "='" & FilePath1 & "[" & FileName1 & "]Cash Sheet'!A11"
 Range("A11").Copy Destination:=Range("A11:AA272")
 Range("A11:AA272").Select
 Selection.Copy
 Selection.PasteSpecial Paste:=xlPasteValues
 Application.CutCopyMode = False

i am borrowing someone else code and need it to just paste as values but it seems to paste as the formulae from cell A11, i am not sure how to fix it.

office-vba-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers