Hi All, looking for a issue to be resolved in VBA.
I have a VBA code to open the files in the folder and count the number of used rows and get the result in a new sheet.The problem is I am not getting the exact count of used rows, it is showing two count less, where in it has to just ignore header count and get the remaining ( But we see VBA is getting total used rows -2 in output sheet). I tried to amend the codes, but could not figure out exact line to amend. Please somebody help here.
Attached book Sample contains the code and sheet 1 of samework book contains data to test on for your convenience . Looking for a help, thanks in advance.
I have a VBA code to open the files in the folder and count the number of used rows and get the result in a new sheet.The problem is I am not getting the exact count of used rows, it is showing two count less, where in it has to just ignore header count and get the remaining ( But we see VBA is getting total used rows -2 in output sheet). I tried to amend the codes, but could not figure out exact line to amend. Please somebody help here.
Attached book Sample contains the code and sheet 1 of samework book contains data to test on for your convenience . Looking for a help, thanks in advance.