Pyrgos
New Member
- Joined
- Feb 22, 2012
- Messages
- 30
Hi all. I cannot understand what is wrong here.
I already tried several other solutions. Could't find anything. I suspect I am missing something obvious, but after so much searching, could not realise what. Any help please?
Code:
Dim Counter As Long
Dim Counter2 As Long
Dim AssociateList As Range
'Check Number of Lines with Reports Filled
Counter = 1
Do Until ThisWorkbook.Sheets("Tracker").Cells(Counter, 2).Value = ""
Counter = Counter + 1
Loop
'Check Number of Lines in Associates' List
Counter2 = 2
Do Until ThisWorkbook.Sheets("Lists").Cells(Counter2, 1).Value = ""
Counter2 = Counter2 + 1
Loop
Set AssociateList = ThisWorkbook.Sheets("Lists").Range(Cells(2, 1), Cells(Counter2, 2)) 'ERROR 1004
AssociateList = ThisWorkbook.Sheets("Lists").Range(Cells(2, 1), Cells(Counter2, 2))
If TrackForm.OptionApproved = True Then
yadda yadda
I already tried several other solutions. Could't find anything. I suspect I am missing something obvious, but after so much searching, could not realise what. Any help please?