impressive
New Member
- Joined
- Oct 3, 2022
- Messages
- 12
- Office Version
- 2019
- Platform
- Windows
- MacOS
Hello everyone,
I am working on a list where the Area from A1 to Q7 is basically the header (Client Name, Location, Project Start, Project End, etc...), which consists mostly of merged cells.
In this list are items listed that a client gets.
So the listing of the Items starts from A8, and this is also where I want my Macro to work,
I have a macro that should delete empty rows if a Cell in the A-Column is empty.
This is what i have so far:
Sub DeleteRow()
Range("a8:a257").Select
Selection.SpecialCells(xlCellTypeBlanks).EntireRow.Delete
End Sub
When I execute it, I get an error message and in the debug is written:
Selection.SpecialCells(xlCellTypeBlanks).EntireRow.Delete
After i removed in my sheet the header area with the merged cells (A1 to Q7) , it worked perfectly fine.
Could someone please help me?
Kind regards
I am working on a list where the Area from A1 to Q7 is basically the header (Client Name, Location, Project Start, Project End, etc...), which consists mostly of merged cells.
In this list are items listed that a client gets.
So the listing of the Items starts from A8, and this is also where I want my Macro to work,
I have a macro that should delete empty rows if a Cell in the A-Column is empty.
This is what i have so far:
Sub DeleteRow()
Range("a8:a257").Select
Selection.SpecialCells(xlCellTypeBlanks).EntireRow.Delete
End Sub
When I execute it, I get an error message and in the debug is written:
Selection.SpecialCells(xlCellTypeBlanks).EntireRow.Delete
After i removed in my sheet the header area with the merged cells (A1 to Q7) , it worked perfectly fine.
Could someone please help me?
Kind regards