Blanchetdb
Board Regular
- Joined
- Jul 31, 2018
- Messages
- 161
- Office Version
- 2016
- Platform
- Windows
Hi
I am desperately seeking an answer to this issue....
I have the code to erase the blank cells:
First - I would like the code to delete rows in multiple worksheets (all worksheets; 10 of them) are all designed the same
Second - The more pressing issue is that as the rows are deleted but so is the formula located in column AB which is imperative that it remains. This is the formula in column AB: =F2&" / ("&A2&") / "&AA2&" / "&X2 which starts on AB2.
I need to be able to delete rows where the cell in column E is blank but also ensure that the formula located in column AB remains because it is needed for NEW entries at a later date
PLEASE any help would be greatly appreciated.
thank you.
Dan
I am desperately seeking an answer to this issue....
I have the code to erase the blank cells:
VBA Code:
Sub DeleteAllEmptyRows()
On Error Resume Next
Sheets("Staffing-Processes").Range("E2:E5000").Select
Selection.SpecialCells(xlCellTypeBlanks).EntireRow.Delete
End Sub
First - I would like the code to delete rows in multiple worksheets (all worksheets; 10 of them) are all designed the same
Second - The more pressing issue is that as the rows are deleted but so is the formula located in column AB which is imperative that it remains. This is the formula in column AB: =F2&" / ("&A2&") / "&AA2&" / "&X2 which starts on AB2.
I need to be able to delete rows where the cell in column E is blank but also ensure that the formula located in column AB remains because it is needed for NEW entries at a later date
PLEASE any help would be greatly appreciated.
thank you.
Dan