Delete Curves

Hi

how can I creat a macro to delete all horizontal lines?

Thanks