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

Using -Title switch results in -AutoFilter and -BoldTopRow switches not applying properly to the actual column header row which is now on line 2. #182

Closed
jeremytbrun opened this issue May 2, 2017 · 2 comments

Comments

@jeremytbrun
Copy link

$groupedUsers | Select-Object Name, Count | Export-Excel "<pathToXlsx>" -WorkSheetname "Agency Overview" -Title "Agency Overview" -TitleBold -AutoSize -AutoFilter -BoldTopRow

image

@dfinke
Copy link
Owner

dfinke commented May 2, 2017

If you want a quick fix, add the below after this line.

https://github.com/dfinke/ImportExcel/blob/master/Export-Excel.ps1#L272

    if($Title) {
        $startAddress="A2"
    }

This is not a complete fix and I'll need to do tests and it will be a bit before I can publish and update.

@dfinke dfinke added the bug label May 2, 2017
@y-master
Copy link

I have the same issue with TableStyle, the table should start on line 2.
image

jeremytbrun pushed a commit to jeremytbrun/ImportExcel that referenced this issue Sep 20, 2017
jeremytbrun pushed a commit to jeremytbrun/ImportExcel that referenced this issue Sep 20, 2017
dfinke added a commit that referenced this issue Oct 3, 2017
@dfinke dfinke closed this as completed Jun 23, 2018
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

3 participants