dpiano1984
New Member
- Joined
- Feb 8, 2013
- Messages
- 14
Hey everyone. I'm trying to run some code but I keep getting the Object Variable or With Block Variable Not Set message. I'm not using any object in the line that is causing the error. Could someone take a look at the code and let me know what I'm doing wrong?
I'm getting an error on the last line of given code
I'm getting an error on the last line of given code
Code:
Private Sub addDescriptions(BucketTotal as Double, Descriptions as String)
Dim DCELL as Range
'''Loop Through Controls'''
For i = 1 to 20
if Controls("TR" & i).Value = "" Then
Exit For
Else
Set DCELL = Columns("F").Find(Controls("DivRate" & i), Lookin:=xlValues, Lookat:=xlWhole).Offset(0,3)