Hi,
please i want to delete all columns if the value = zero in specific row
i did this code to hide the columns, can u help to delete them?
thanks.Please Login or Register to view this content.
Hi,
please i want to delete all columns if the value = zero in specific row
i did this code to hide the columns, can u help to delete them?
thanks.Please Login or Register to view this content.
Try
Please Login or Register to view this content.
If you like my contribution click the star icon!
Sorry,
looks like not working....
thanks.
Then probably the columns are not hidden yet.
Please try this code
Please Login or Register to view this content.
Ollie,
Ur macro is working very good, but if there is a lot of columns to be deleted will not work perfectly, i mean that i have to run the macro many times to delete all column
Could u plz help
Thanks
That is probably because the macro is deleting the columns from left to right. This can cause a problem because the letters of the columns will change once you delete a column that is on the left. We should reverse the process (i.e. delete from right to left).
Try:
Please Login or Register to view this content.
Last edited by OllieB; 02-07-2013 at 03:09 AM.
thanks a lot OllieB,
it is working
Good to hear and you are welcome. Please remember to mark your thread as SOLVED and to click on the star icon if you are happy with my contribution!
PS
the code posted in #6 contains one small typing error
the last occurence of the below statement
should bePlease Login or Register to view this content.
I have corrected the code posted in #6Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks