Link to home
Create AccountLog in
Avatar of mishelper
mishelper

asked on

How to select and bold the whole worksheet with Apache POI

I am a beginner with Apache POI library.

in VBA, I know I can select and bold the whole worksheet with following code

Dim ws As Worksheet
Set ws = ThisWorkbook.Sheets(1)
ws.Cells.Font.Bold = True

May I know how to select and bold the whole sheet by coding with Apache POI library?

thanks
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of mishelper
mishelper

ASKER

thanks , appreciate if you can post no matter there is alternative way or not :)
sorry noone knew of a better way