MrKowz
Well-known Member
- Joined
- Jun 30, 2008
- Messages
- 6,653
- Office Version
- 365
- 2016
- Platform
- Windows
Hey all, last leg of the macro process for me, and I run into an error here. I can bypass the error by manually defining the range, but I want it to be automatic.
Here is part at which it errors:
I tried defining the variable LR before the dim, but it still won't work. Any ideas?
Here is part at which it errors:
Code:
Sub Highlight_Half_Dupes()
Dim rowx As Long
Dim i As Integer
Dim LR As Integer
Dim c As Range
Dim j As Integer
Dim k As Integer
Dim Dup As Integer
Dim VarDup As Integer
LR = Range("A" & Rows.count).End(xlUp).row
Dim RowArray(1 To LR) As String <------------ERROR
I tried defining the variable LR before the dim, but it still won't work. Any ideas?