braindiesel
Well-known Member
- Joined
- Mar 16, 2009
- Messages
- 571
- Office Version
- 365
- 2019
- 2010
- Platform
- Windows
Hello,
I have code selecting the cells A5:E(variable number)
In column A is a number
If the number begins with 1, 2, or 3, I want to delete the cells, shifting up
What I have so far is
Range("A5:E5").Select
Range(Selection, Selection.End(xlDown)).Select
::I am missing the part here where it activates the rows where the left begins with a 1, 2, or 3
Selection.Delete Shift:=xlUp
Can you help me fill the gap?
I have code selecting the cells A5:E(variable number)
In column A is a number
If the number begins with 1, 2, or 3, I want to delete the cells, shifting up
What I have so far is
Range("A5:E5").Select
Range(Selection, Selection.End(xlDown)).Select
::I am missing the part here where it activates the rows where the left begins with a 1, 2, or 3
Selection.Delete Shift:=xlUp
Can you help me fill the gap?