DerekExcels
New Member
- Joined
- Aug 18, 2023
- Messages
- 2
- Office Version
- 365
- 2016
- Platform
- Windows
Hey,
Hope everyone is well. Please see below example. I need a vba that deletes all rows between "Car" and "Bus" but I want all the rows with "Car" and "Bus" to remain and everything else to stay as is, i.e. "Bike" and "Jet".
With the below example, (Blanks) and "Truck" will be deleted with vba.
Column A
Bike
Bike
(Blank)
Car
Car
Car
(Blank)
Truck
(Blank)
Bus
Bus
Bus
(Blank)
Jet
Really appreciated,
Derek
Hope everyone is well. Please see below example. I need a vba that deletes all rows between "Car" and "Bus" but I want all the rows with "Car" and "Bus" to remain and everything else to stay as is, i.e. "Bike" and "Jet".
With the below example, (Blanks) and "Truck" will be deleted with vba.
Column A
Bike
Bike
(Blank)
Car
Car
Car
(Blank)
Truck
(Blank)
Bus
Bus
Bus
(Blank)
Jet
Really appreciated,
Derek