Hi Guys ,
I am facing issue to trim the entire excel column using powershell .Below code I have used but it replace the entire cell value on search of space.
I am avoiding the use of loops. Please help
$optionalParameter = [System.Type]::Missing $Worksheet.Range("B2").EntireColumn.Replace(" ", "",2,$optionalParameter,$optionalParameter,$false,$false,$true)