I have this sheet where many cells have a numeric value (ex: 304 550.07) but that actually depend on the value of other cells in the same sheet. For example: "D1 = C1+1" is what can be seen in the 'Formula bar' and "2" is the actual numerical value of the D1 cell.
I've looked up a way to copy the column I needed (D) and paste it on another sheet, here's the code (not mine):
Sub sbCopyRangeToAnotherSheet()
'Method 1
Sheets("Sheet1").Range("D1:D10").Copy Destination:=Sheets("Sheet2").Range("A1")
'Method 2
'Copy the data
Sheets("Sheet1").Range("D1:D10").Copy
'Activate the destination worksheet
Sheets("Sheet2").Activate
'Select the target range
Range("A1").Select
'Paste in the target destination
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub
So, these two methods work but only if the values of the cells are numerical (locked?) and not if they depend on the value of another cell. As a result, when I try to copy the D column from 'Sheet1' to 'Sheet2', all I get is either:
=#REF!
OR
the calculations that were defined in the Formula bar in 'Sheet1', which means that it takes the values of the depending cell for 'Sheet2'.
All that to say that, I'm trying to find a way to copy the actual value that are written in the cell and not the calculations that lead to the result.
PS: Really sorry for those bad explanations, first post tho ;) Thanks.