How to copy only values in excel vba from a range?
问题 I'm trying to copy values from a table to a Range, in Excel using vba Macros, but I dont want the table format, only its values. How can I achieve this? Here is part of the code: 'Source range Set r = Sheets("Sheet1").Range("Table1") 'Destination range Set dest = Range(.Cells(linhaAtual, 1), .Cells(linhaAtual + r.Rows.Count - 1, 5)) r.Copy Destination:= dest 回答1: You can skip the copy command altogether by assigning the values of the source range to your destination range: 'Source range Set r