Simple "Left" Problem
Try this:
Searchvalue = .Left(Range("A" & CSTR(sh2rowcount)), 9)
I assume SH2ROWCOUNT is an integer and not a string?
Cheers
On Jul 13, 9:45*pm, James8309 wrote:
Hi everyone
I have a long Macro in one of my excel file and I am getting an object
defined error.
" Searchvalue = .Left(Range("A" & sh2rowcount), 9) "
I wanted my searchvaule to be left of that range. This is just a part
of my code and everything looks good except that line.
Where do I insert Left ? in order to search first 9 values of
Range("A" & sh2rowcount)??
Please help
Thank you,
|