Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell script to TRIM excel entire column

$
0
0

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)



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>