I use this command to talk to Excel
oxls := TOleAuto():New("Excel.Application")
I want to activate the protection of my sheet before saving it .
What is the syntax ?? How to pass a password as parameter ?
If should be something like :
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _
, AllowFormattingCells:=True, AllowFormattingColumns:=True
Thanks