Hello all - first post here, but I want to thank you all for advancing my VBA work for quite a while now.
My VBA code opens approx. 250 files and extracts specific data from select rows/columns in each file based on an assessment of a value in a specific column. I've copied the file opening code and threshold criteria code below. For months, this has worked beautifully.
I recently wrote a separate code that now precedes the above functions to open the same files, makes a number of calculations and writes new values over the existing columns of my worksheet. This code also seems to be working well. The data formats in the resulting files are all the same as the original versions.![]()
Please Login or Register to view this content.
When I attempt to run my 'threshold flagging' code on the revised files, I receive a type mismatch error on the following line from above...
When I hover over the 'dresult' when attempting to debug, it shows the first correct value from the first file that was supposed to be opened. I've run both sets of code multiple times this morning...the original code on the unmodified files and the modify code separately. When i attempt to run the original 'threshold flagging' code on the modified files, the type mismatch error appears every time.![]()
Please Login or Register to view this content.
Any help you can offer would be greatly appreciated. I'm happy to paste the entire macro if seeing all of the code is informative, but I thought there may be something simple I overlooked. thanks in advance!
Bookmarks