Thanks for your contribution.
I have tried to add password to an xlsx successfully. However, there are some problems when adding password to xls/csv excel files.
May I know if the msoffcrypto can support xls/csv?
Thanks. Ricky