on-internet
← Community

PowerShell Script for Filtering in Excel

Stack Overflow ·

I am writing a code to filter out the second column (B) of my Excel sheet which consists of the side indicators. I am trying to filter and display the indicator = > only along with the corresponding column A data. However, whenever I run the code below I get the error Unable to get the Autofilter Property of the Range class At line:14 char:1 CSV file format Name SideIndicator asdf = > asdf = > trew = = As I am pretty new to Excel automation using PowerShell, I am kind of stuck on where I am going wrong. The code: $file1 = "C:\Users\achowdhury\Desktop\Comparedfile.csv" # source's fullpath $xl =

Comments

Sign in or sign up to comment and upvote.

No comments yet.