Author Posts

April 19, 2016 at 3:09 pm

Hi All,

I am looking for code to delete Blank rows in range or worksheet till last row with data.

Any help or pointers would be much appreciated


April 19, 2016 at 3:37 pm

If it's a csv file, it'll be easy.

gc c:\temp\abc.csv | foreach {
if($_.length -eq 0){
$_ | out-file C:\temp\abc_new.csv -Append




April 20, 2016 at 11:34 am

I have .xlsx file, I am working with. which has some graphs and charts associated with it.

Tried to use command which I have used with VBA code
its not working

$range = $WorkSheet.Range(“A4:AM206“).Range("A:A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete