Trying2learnVBA
Board Regular
- Joined
- Aug 21, 2019
- Messages
- 67
- Office Version
- 365
- 2021
- Platform
- Windows
Hello,
I am unable to figure out a way to convert a range to absolutes using VBA.
This is the code I am trying:
Does anybody know of a method that works? Am I far off?
I would like to convert range D:D and last row to Abs.
Thank you!!!
I am unable to figure out a way to convert a range to absolutes using VBA.
This is the code I am trying:
VBA Code:
Sub Convert_Range_to_Absolute()
End Sub
Dim Ws As Worksheet
Dim LastRow As Long
Dim iValue As Integer
Dim vResult As Variant
iValue = .Range("D:D" & LastRow)
vResult = Abs(iValue)
Set Ws = ActiveWorkbook.Sheets("Sheet1")
.Range("J:J" & LastRow).Value = vResult
End With
End Sub
Does anybody know of a method that works? Am I far off?
I would like to convert range D:D and last row to Abs.
Thank you!!!