zookeepertx
Well-known Member
- Joined
- May 27, 2011
- Messages
- 576
- Office Version
- 365
- Platform
- Windows
Hello all!
I was recently given some VBA code and am trying to decipher it. One of the items is a FIND formula with a lot of commas at the end, which, I'm sure represent parameters for the FIND. But I can NOT figure them out! I've been googling forever and all I can come up with is that the beginning syntax is FIND(find_text, within_text, [start_num]) but nothing that tells me what the rest of the formula is doing. Can anyone help me? Here's the formula:
b = Columns(clm.Column).Find(Cells(d, clm.Column).Value, , , , , 1).Row
When the macro gets to that line it fails with the error message "Run-time error '91': Object variable or With block variable not set", which I don't know what that means, either.
* * * Please note that "clm.Column" just represents the column that the user selected earlier in the code. * * *
Thanks for any help
Jenny
I was recently given some VBA code and am trying to decipher it. One of the items is a FIND formula with a lot of commas at the end, which, I'm sure represent parameters for the FIND. But I can NOT figure them out! I've been googling forever and all I can come up with is that the beginning syntax is FIND(find_text, within_text, [start_num]) but nothing that tells me what the rest of the formula is doing. Can anyone help me? Here's the formula:
b = Columns(clm.Column).Find(Cells(d, clm.Column).Value, , , , , 1).Row
When the macro gets to that line it fails with the error message "Run-time error '91': Object variable or With block variable not set", which I don't know what that means, either.
* * * Please note that "clm.Column" just represents the column that the user selected earlier in the code. * * *
Thanks for any help
Jenny