Skip to content
Discussion options

You must be logged in to vote

You need to explore ExcelPackage object.
For example:

$excelPackage = Open-ExcelPackage -Path $filePath
$worksheet = $excelPackage.Workbook.Worksheets["Sheet1"]
$Worksheet.Cells[1,1].Style.Font

Name          : Calibri
Size          : 11
Family        : 0
Color         : OfficeOpenXml.Style.ExcelColor
Scheme        :
Bold          : False
Italic        : False
Strike        : False
UnderLine     : False
UnderLineType : None
VerticalAlign : None

$Worksheet.Cells[1,1].Style.Font.color

Theme Tint Rgb Indexed
----- ---- --- -------
         0           0


$Worksheet.Cells[1,1].Style.Font.color | gm

   TypeName: OfficeOpenXml.Style.ExcelColor

Name        MemberType Definition
----        -…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by andyparkerson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants