- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone.. I have an excel problem.....
I can imagine it is quite simple to solve but I'm struggling a little.
I want to run a rule that opens a spreadsheet and looks up column O for a value. if it finds it, then it deletes the value, then it moves onto the next row that has the same value in column O and deletes that value. it keeps going through the data range to the end.
I can open the spreadsheet, define the range, find the first row with the string and delete the contents, but that only happens if there is only one matching cell. if there are two or more cells with the string then nothing happens...
Can I put the code below in a loop and if so can someone help please?
'Search for the file name in column A For oRow = RowStart To RowEnd If (GoExcel.CellValue("O" & oRow)) = "XXX" Then GoExcel.CellValue("O" & oRow) = "" GoExcel.Save GoExcel.Close End If Next
Thanks for any help
Solved! Go to Solution.