Hi
I have a sub routine that prompts the user to open a file and the user then selects a NOTEPAD file. The sub routine then cleanses the file and formats certain cells.
I then want to return the number of rows in the file but the code I'm using only returns 1 when there are 230 rows in the file...
Batch_Row_Count = ActiveSheet.UsedRange.Rows.Count
Is this because it is not an Excel file even though I have opened it in Excel ?
Thank you in advance.
Al
I have a sub routine that prompts the user to open a file and the user then selects a NOTEPAD file. The sub routine then cleanses the file and formats certain cells.
I then want to return the number of rows in the file but the code I'm using only returns 1 when there are 230 rows in the file...
Batch_Row_Count = ActiveSheet.UsedRange.Rows.Count
Is this because it is not an Excel file even though I have opened it in Excel ?
Thank you in advance.
Al