General Ledger
Active Member
- Joined
- Dec 31, 2007
- Messages
- 460
Dear All,
I am looking for a better way to change a list of values to Yes or No.
I have the below code which works fine. It examines the value on each line one at a time. This takes a long time since I have many records.
Is there a faster way?
Thanks,
GL
I am looking for a better way to change a list of values to Yes or No.
I have the below code which works fine. It examines the value on each line one at a time. This takes a long time since I have many records.
Code:
' Convert Exclude from a Value to Text (Yes or No)
Range("k2").Activate
Do Until IsEmpty(ActiveCell)
If ActiveCell.Value < 0 Then
ActiveCell.Value = "Yes"
Else: ActiveCell.Value = "No"
End If
ActiveCell.Offset(1, 0).Activate
Loop
Is there a faster way?
Thanks,
GL