I got around this one - it happened ONE time in a process that is run at least monthly, and has now been in place for at least 4 or 5 years, possibly longer.
I don't run the process, but I built it (with much help from tek-tipsters as well), and tweaked off an on initially. But I've not had to touch it since then.
The odd thing is the problem didn't arise with anything but a reference to the TRIM command. My solution? I commented out the Trim line, stepped past that line, uncommented the line, and let 'er rip. Never had another moments issue.
So, anybody got any clues why it would mess up on just one cell?
The cell value was a street address. I forget the address, but it didn't look that unusual. Something like:
123 Main Other Blvd and that was it - no leading or trailing spaces, no extra characters that I noticed (but was a quick glance).
The code was just looping through the cells, and it did this (same as every other cell, every other run):
ws.Cells(x,2).Formula = Trim(ws.Cells(x,2))
So hopefully I won't have to mess with it again, but thought I'd post here in case anyone can say... "oh yeah, that's the old Trim... bla bla bla error.
Thanks for any thoughts, links, suggestions, whatever,
Stephen
I don't run the process, but I built it (with much help from tek-tipsters as well), and tweaked off an on initially. But I've not had to touch it since then.
The odd thing is the problem didn't arise with anything but a reference to the TRIM command. My solution? I commented out the Trim line, stepped past that line, uncommented the line, and let 'er rip. Never had another moments issue.
So, anybody got any clues why it would mess up on just one cell?
The cell value was a street address. I forget the address, but it didn't look that unusual. Something like:
123 Main Other Blvd and that was it - no leading or trailing spaces, no extra characters that I noticed (but was a quick glance).
The code was just looping through the cells, and it did this (same as every other cell, every other run):
ws.Cells(x,2).Formula = Trim(ws.Cells(x,2))
So hopefully I won't have to mess with it again, but thought I'd post here in case anyone can say... "oh yeah, that's the old Trim... bla bla bla error.
Thanks for any thoughts, links, suggestions, whatever,
Stephen