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

Receiving Horizontal Alignment issue on latest version of the script #27

Closed
irlperu opened this issue Aug 16, 2021 · 2 comments
Closed

Comments

@irlperu
Copy link

irlperu commented Aug 16, 2021

I currently am running powershell 7.1.4

azure-cli 2.27.1

core 2.27.1
telemetry 1.0.6

Extensions:
resource-graph 2.1.0

InvalidOperation: C:\Users\ajkeane\Documents\PowerShell\Modules\ImportExcel\7.1.2\Public\Set-ExcelRange.ps1:107
Line |
107 | … $Range.Style.HorizontalAlignment = $HorizontalAlignment
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The property 'HorizontalAlignment' cannot be found on this object. Verify that the property exists and
| can be set.
az account list
InvalidOperation: C:\Users\ajkeane\Documents\PowerShell\Modules\ImportExcel\7.1.2\Public\Set-ExcelRange.ps1:128
Line |
128 | … $Range.Style.Numberformat.Format = (Expand-NumberFormat $ …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The property 'Format' cannot be found on this object. Verify that the property exists and can be set.
https://docs.microsoft.com/en-US/cli/azure/account#az_account_set
WARNING: Failed autosizing columns of worksheet 'Subscriptions': You cannot call a method on a null-valued expression.
WARNING: Failed adding PivotTable 'P1': Index operation failed; the array index evaluated to null.
WARNING: Failed adding chart for pivotable 'P1': Cannot bind argument to parameter 'PivotTable' because it is null.

@ClaudioMerola
Copy link
Contributor

Hi,

I believe it was a bug in the last version.

Can you try the version 1.4.21?

Thanks

@irlperu irlperu closed this as completed Aug 19, 2021
@irlperu
Copy link
Author

irlperu commented Aug 19, 2021

Looks like that was the problem! thanks -

@ghost ghost locked as resolved and limited conversation to collaborators Aug 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants