lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I am trying to understand the code below but I am having difficult time to understand these lines and what they do
Thank you very much.
souce https://excelchamps.com/blog/useful-macro-codes-for-vba-newcomers/
I am trying to understand the code below but I am having difficult time to understand these lines and what they do
Code:
rng.FormatConditions.Delete
Code:
Set uv = rng.FormatConditions.AddUniqueValues
Code:
uv.DupeUnique = xlUnique
Thank you very much.
Code:
Sub find_unique()
Dim rng As Range
Set rng = Selection
rng.FormatConditions.Delete
Dim uv As UniqueValues
Set uv = rng.FormatConditions.AddUniqueValues
uv.DupeUnique = xlUnique
uv.Interior.Color = vbGreen
End Sub
souce https://excelchamps.com/blog/useful-macro-codes-for-vba-newcomers/
Last edited: