close

How can I allow a user to insert a photo into a particular cell of a
protected worksheet?

gnolla, how about with a macro?
The first one you can hard code the pic you want, the second one will bring
up the insert picture dialog box and let them pick the one they want

Sub test()
Const PW As String = quot;123quot; 'Change Password Here
ActiveSheet.Unprotect Password:=PW
Range(quot;C4quot;).Select
ActiveSheet.Pictures.Insert( _
quot;C:\My Documents\My Pictures\TestPicquot;).Select
'change pic location and name above
ActiveSheet.Protect Password:=PW
End Sub

Sub test1()
Const PW As String = quot;123quot; 'Change Password Here
ActiveSheet.Unprotect Password:=PW
Range(quot;C4quot;).Select
Application.Dialogs(xlDialogInsertPicture).Show
ActiveSheet.Protect Password:=PW
End Sub--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 amp; 2003

quot;gnollaquot; gt; wrote in message
...
gt; How can I allow a user to insert a photo into a particular cell of a
gt; protected worksheet?

全站熱搜
創作者介紹
創作者 software 的頭像
software

software

software 發表在 痞客邦 留言(0) 人氣()