awsumchillicrab
Board Regular
- Joined
- Jan 30, 2011
- Messages
- 56
Hi,
I've used
.Value = .Value
a few times to replace a range from being a formula to just the values.
However, sometimes it seems to delete my entire formula, even though I use the same syntax! Can anyone explain to me what this .value = .value really does?
Here's one where it effectively pasted values only:
in autofiltered mode
With Range("Q2:Q" & LastRow).SpecialCells(xlCellTypeVisible)
.FormulaR1C1 = "=IF(RC[-5]>RC[-9]+21,""Improve date"","""")"
.Value = .Value
End With
And here's one where it deleted my formulas:
in a different autofiltered mode
With Range("Q2:Q" & LastRow).SpecialCells(xlCellTypeVisible)
.FormulaR1C1 = "=IF(networkdays(RC[-9],today())>4,""No promise date"","""")"
.Value = .Value
End With
I've used
.Value = .Value
a few times to replace a range from being a formula to just the values.
However, sometimes it seems to delete my entire formula, even though I use the same syntax! Can anyone explain to me what this .value = .value really does?
Here's one where it effectively pasted values only:
in autofiltered mode
With Range("Q2:Q" & LastRow).SpecialCells(xlCellTypeVisible)
.FormulaR1C1 = "=IF(RC[-5]>RC[-9]+21,""Improve date"","""")"
.Value = .Value
End With
And here's one where it deleted my formulas:
in a different autofiltered mode
With Range("Q2:Q" & LastRow).SpecialCells(xlCellTypeVisible)
.FormulaR1C1 = "=IF(networkdays(RC[-9],today())>4,""No promise date"","""")"
.Value = .Value
End With