Password Protecting a TransferSpreadsheet spreadsheet

G

Guest

Hi,

I'm using the DoCmd.TransferSpreadsheet acExport to export a table as an
Excel spreadsheet.

Does anyone know of a way I can add a file protection password to this
exported spreadsheet, so that it can only be opened with the password.

Thanks

Neil
 
K

Ken Snell [MVP]

Not as part of the TransferSpreadsheet action itself. You'd need to use
Automation to open the EXCEL file after it's created and to then add a
password to it (you may want to ask in the EXCEL newsgroups how to add a
password programmatically), then save it and close the file.
 
G

Guest

Cheers Ken,

I came to that conclusion after reading a few other related posts, so I'm
reading up on that one.

Ta..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top