Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create an excel sheet, save it with password

Status
Not open for further replies.

bclt

Programmer
Mar 13, 2005
363
GR
Hi,

There is an application that creates an excel sheet. After finishing i save it to the disk so the user can watch it.

This i don;t know is how to password protect it, (tools -> protection -> protect sheet) with pass e.g "123".

By that any user may only watch it and print it (not add anything)


TNX
 
Hi, this works for me.

Dim pwd As Object = "password"
xlsheet.Protect(pwd)

But don't add the protection until you are finished writing your data to it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top