Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
gnolla
 
Posts: n/a
Default Insert Photo into a protected worksheet

How can I allow a user to insert a photo into a particular cell of a
protected worksheet?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Paul B
 
Posts: n/a
Default Insert Photo into 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 = "123" 'Change Password Here
ActiveSheet.Unprotect Password:=PW
Range("C4").Select
ActiveSheet.Pictures.Insert( _
"C:\My Documents\My Pictures\TestPic").Select
'change pic location and name above
ActiveSheet.Protect Password:=PW
End Sub

Sub test1()
Const PW As String = "123" 'Change Password Here
ActiveSheet.Unprotect Password:=PW
Range("C4").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 & 2003

"gnolla" wrote in message
...
How can I allow a user to insert a photo into a particular cell of a
protected worksheet?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing a list to a Calendar worksheet. PatrickL Excel Worksheet Functions 0 August 25th 05 04:21 PM
How can I insert a picture from file while worksheet is protected ChrisYH Excel Discussion (Misc queries) 0 July 27th 05 04:25 AM
Sorting on a protected worksheet Sue Excel Discussion (Misc queries) 6 June 12th 05 09:26 AM
Protect Worksheet but allow to insert or delete rows Bob L Hilliard Excel Discussion (Misc queries) 2 June 9th 05 02:08 PM
Insert worksheet ParTeeGolfer Excel Worksheet Functions 1 January 10th 05 07:03 PM


All times are GMT +1. The time now is 10:25 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"