Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AutoFilter to Format-Cell #20

Open
RamblingCookieMonster opened this issue Oct 7, 2015 · 7 comments
Open

Add AutoFilter to Format-Cell #20

RamblingCookieMonster opened this issue Oct 7, 2015 · 7 comments

Comments

@RamblingCookieMonster
Copy link
Owner

Per Filip Hasa's suggestion - Thanks Filip!

@RamblingCookieMonster
Copy link
Owner Author

Have the code written for this, but it only works in one direction (setting to true).

image

Will check on whether I'm doing it wrong, or whether a bug should be submitted for the EPPlus library.

@hasafi
Copy link

hasafi commented Oct 8, 2015

How about this: Spreadsheet1.ActiveSheet.AutoFilterMode = $false ?
source: https://msdn.microsoft.com/en-us/library/aa199191(v=office.10).aspx

@hasafi
Copy link

hasafi commented Oct 8, 2015

But only one direction is fine ;) Can I test it?

@RamblingCookieMonster
Copy link
Owner Author

sure, just committed the change!

@hasafi
Copy link

hasafi commented Oct 9, 2015

thank you

I am missing something ;( it is not working for me

image

On Fri, Oct 9, 2015 at 12:03 AM Warren F. notifications@github.com wrote:

sure, just committed the change!


Reply to this email directly or view it on GitHub
#20 (comment)
.

@RamblingCookieMonster
Copy link
Owner Author

Hi!

A few steps that might help:

  • Re-download PSExcel from GitHub (PowerShellGallery is now behind)
  • Import-Module \Path\To\PSExcel -Force # or open a new session and import without Force
  • Format-Cell -AutoFilter $True # Using bool, to allow setting back to false at some point

If you open Format-Cell.ps1, you should see that parameter in the param() block:

image

Thanks!

@hasafi
Copy link

hasafi commented Oct 9, 2015

done. it is working like charm
have you seen this?
https://msdn.microsoft.com/en-us/library/aa199191(v=office.10).aspx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants