HarperCash
New Member
- Joined
- Jul 7, 2022
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Hi,
I'm trying to create a macro that will check across a row to find the first blank and insert the text "Drop out".
The problem I'm having is it need to do this Starting from H2-S2 but also check down to the last cell in H and across each one. So it would check H2:S2, H3:S3, H4:S4 and on and on until the last row with data in column H. The amount of rows in H with data will change constantly.
I've only been able to figure out how to get it to check one row at a time. It also can't fill ALL blanks as rows just the very first one. Can anyone help me?
Range("H2").Select
Selection.End(xlToRight).Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "Drop Out"
I'm trying to create a macro that will check across a row to find the first blank and insert the text "Drop out".
The problem I'm having is it need to do this Starting from H2-S2 but also check down to the last cell in H and across each one. So it would check H2:S2, H3:S3, H4:S4 and on and on until the last row with data in column H. The amount of rows in H with data will change constantly.
I've only been able to figure out how to get it to check one row at a time. It also can't fill ALL blanks as rows just the very first one. Can anyone help me?
Range("H2").Select
Selection.End(xlToRight).Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "Drop Out"