So, I'm running two basic scripts: One that adds prefixes to cells, the other which adds suffixes. These are being run on CSV files that are used for database purposes. Here is the suffix one:
These scripts had been working fine up until recently. Now, sometimes they work, and then sometimes they just won't execute. When I debug, I get a Run-time error 424: Object required. I don't know why I'm getting that error. I thought it was because the cells were locked (which they are by default for some reason, I don't know why). But it works sometimes when the cells are locked, and when it doesn't work, it doesn't seem to matter whether the cells are locked or not.
I'm trying to figure out why it keeps happening. Is it because of the files themselves (which, despite having a CSV extension, Excel initially recognizes as Unicode Text)? Is it Excel? This is beginning to frustrate me, because it's part of a big project that I need to complete.
Bookmarks