So hi,
First off, thank you to NoSparks who helped me previously, was a great help & deserves a 'callout.'
Issue I need help with.
I'm trying to delete rows from a table based on a value contained of cells in a particular column. I can do it manually however using the recorded macro, it deletes 'all' information in the spreadsheet.
I'm highlighting a column that has the specific value 'Yes' in it that i want to delete the rows of. I CRTL F, do 'find all' on value 'Yes', then CRTL A to highlight all these cells. Next step is closing the FIND / FIND REPLACE box and CRTL -, choose Entire Row in the Delete box and click the OK button. This is when it deletes ALL data in the spreadsheet instead of just the rows of the highlighted cells.
Code below
Sub Macro4()
'
' Macro4 Macro
'
'
Windows("usage for Macro 4 code example.xls").Activate
Columns("G:G").Select
Selection.EntireRow.Delete
Windows("! Contract review Macro APP.xlsm").Activate
End Sub
As you can see it records nothing of the specific "Yes" value in which to delete the rows containing and I don't know enough yet to work it out.
Thank you for any assistance.
First off, thank you to NoSparks who helped me previously, was a great help & deserves a 'callout.'
Issue I need help with.
I'm trying to delete rows from a table based on a value contained of cells in a particular column. I can do it manually however using the recorded macro, it deletes 'all' information in the spreadsheet.
I'm highlighting a column that has the specific value 'Yes' in it that i want to delete the rows of. I CRTL F, do 'find all' on value 'Yes', then CRTL A to highlight all these cells. Next step is closing the FIND / FIND REPLACE box and CRTL -, choose Entire Row in the Delete box and click the OK button. This is when it deletes ALL data in the spreadsheet instead of just the rows of the highlighted cells.
Code below
Sub Macro4()
'
' Macro4 Macro
'
'
Windows("usage for Macro 4 code example.xls").Activate
Columns("G:G").Select
Selection.EntireRow.Delete
Windows("! Contract review Macro APP.xlsm").Activate
End Sub
As you can see it records nothing of the specific "Yes" value in which to delete the rows containing and I don't know enough yet to work it out.
Thank you for any assistance.