I admit that UBound is the one command that I use that I do not understand but it has worked consistently for years. I upgraded to Windows 8 last week and today for the first time I found that this command is not working.
BadQueryList = Array("spider", "MyBackyardFurniture", "Teak Yard Furniture", "Wicker Yard Furniture")
Z = Filter(BadQueryList, Cells(CurRow, 1))
If UBound(Z) = 0 Then
For Each s In BadQueryList
If s = Cells(CurRow, 1) Then DelRow = True
Next s
End If
I enter new words that I do not want in my spreadsheet into the array and when it is found the row is marked to be deleted. In this case the new phrase that is imported from Google WebMaster or Google Analytics is, "outdoor wicker and spiders" and I do not want to rank for this phrase so I want to remove any row with the word, "spider".
This is just the newest word I have added and I fear that this is not working with any word or phrase.
I have Office 2010 with Windows 8.
Thank you,
Dave
BadQueryList = Array("spider", "MyBackyardFurniture", "Teak Yard Furniture", "Wicker Yard Furniture")
Z = Filter(BadQueryList, Cells(CurRow, 1))
If UBound(Z) = 0 Then
For Each s In BadQueryList
If s = Cells(CurRow, 1) Then DelRow = True
Next s
End If
I enter new words that I do not want in my spreadsheet into the array and when it is found the row is marked to be deleted. In this case the new phrase that is imported from Google WebMaster or Google Analytics is, "outdoor wicker and spiders" and I do not want to rank for this phrase so I want to remove any row with the word, "spider".
This is just the newest word I have added and I fear that this is not working with any word or phrase.
I have Office 2010 with Windows 8.
Thank you,
Dave