Hi all
I need help to edit a macro or to write a udf to do the follows:
i have a workbook with many sheets
in each sheet there is diffrent number of rows
I need :
1- a function to count all the rows in a sheet ( filled and blank rows in between the filled ones ) from the first row in the sheet to the last row filled with data .
I need this function to be able to insert a statement at the end of each sheet after the last row in each sheet
and because each sheet has a diffrent number of rows(either the blank rows or the filled ones ) i could not did this
I tried to use CountA ,CountBlank ,UsedRange property ,Range.Rows.count property
but bacause of the diffrentiation of each sheet this did not help
I am not professional in vba so maybe i did not use the right combination of these functions
so I guess that the right combination of these function will work
or maybe u can suggest better solution
Thaxxxxxxx in advance
i really appreciate your help
there is an example worksheet in the attachments
Bookmarks