Worksheet Protection and Inserting Pictures

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to protect a worksheet (with password) and still allow user to insert
Picture (from file only, if that helps), how can I accomplish this?
 
Hood

Unprotect, insert, reprotect.

Sub Macro1()
ActiveSheet.Unprotect Password:="justme"
ActiveSheet.Pictures.Insert ("E:\Winter.jpg")
ActiveSheet.Protect Password:="justme"
End Sub


Gord Dibben Excel MVP
 

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

Back
Top