Hi All
Trying to learn VBA on the fly as I go. Have a relatively simple task that I thought I had sussed, but apparently not. I have a data range A:O that is collected from other sheets (using a Master and Report Sheet) and pasted into one sheet as values only not the formulas in the Report sheet.
Because it collects a standard length this means there are gaps. In the report sheet I have the formula that states If(ISNOTTEXT) then True returns value Don't Delete and False is Delete. When this is copied into the new sheet as values only the column O has either Delete or Don't Delete. There can be a lot of values in this one sheet (10,000 mostly blank). If I click the row O, go to find, Delete, select all, right click, delete entire row, I get the effect I want. 178 - 200 rows for Columns A:O. However, I wanted to make a button that would do this for me.
This was the code I came up with
However, when I click the button my excel goes into a mad frenzy of calculating and processing and eventually crashes. Is it because I have too many entries or am I not being specific enough? It only needs to select all the cells in column O that contain the word Delete only and then delete entire row.Please Login or Register to view this content.
Thanks so much
Jes
Bookmarks