Hi
This is my first post here in PC review. I am new to macros and Excel VBA tool. I am presenlty working out a macro to automate a repetitive task, in that macro, i have a fileter which would sort the data and copy and paste it to a new worksheet before it does a subtotal. Till here, this macro works fine. but, for the given criteria, if no data is found for that filter, still the macro is going ahead with execution and tries to do a subtotal, and finds no data to do a subtotal, hence error is reported. How to sort this out, any help is much appreciated.
This is my first post here in PC review. I am new to macros and Excel VBA tool. I am presenlty working out a macro to automate a repetitive task, in that macro, i have a fileter which would sort the data and copy and paste it to a new worksheet before it does a subtotal. Till here, this macro works fine. but, for the given criteria, if no data is found for that filter, still the macro is going ahead with execution and tries to do a subtotal, and finds no data to do a subtotal, hence error is reported. How to sort this out, any help is much appreciated.