Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Insert picture into protected sheet

Thanks, I think a combination of the three may work for me.

"Tom Ogilvy" wrote:

yes, but . . .

Work around 1.

when you protect the sheet, only protect contents.

Insert the picture to another unprotected sheet, then copy and paste it to
your protected sheet.

work around 2
s = "C:\Documents and Settings\All Users\Documents\My Pictures\Sample
Pictures\Blue Hills.jpg"
ActiveSheet.Protect Password:="ABC", UserInterfaceOnly:=True
ActiveSheet.Pictures.Insert (s)

You only need to set the UserInterfaceOnly property once as long as the
worksheet stays protected. It can only be set with code and it has to be
done whenever the workbook is opened

Work around 3
You received that help

--
Regards,
Tom Ogilvy




"ZipCurs" wrote in message
...
Thanks for the quick response. I understand the approach that you are
recommending, but was hoping for a simpler approach. My real question is:
Is
it impossible to insert a picture into a protected worksheet? If not, how
do
you do it?

"Allllen" wrote:

You can unprotect it and then protect it again within your code.

ActiveSheet.Protect Password:="fish"

'your code to insert picture, will be something like this but you may
also
want to resize or reposition it

ActiveSheet.Pictures.Insert("C:\mypic.jpg")

ActiveSheet.Unprotect Password:="fish"


if screen flickering is a problem, use
application.screenupdating = false before your code AND
application.screenupdating = true after it

HTH
--
Allllen


"ZipCurs" wrote:

I would like to insert a picture from file into a protected worksheet.
At
this point, the Excel pull down menus are greyed out for this feature
as long
as the sheet is protected. As far as the user is concered, I want to
keep
the sheet protected.

I am looking for a simple solution to allow the insertion of a picture.
If
this does not work, I will most likely resort to creating a macro with
a
button for picture insertion.

Thanks for the help in advance.




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
Allowing insert picture on a protected sheet KoolHand103 Excel Discussion (Misc queries) 0 August 11th 08 07:12 PM
How do I allow insert picture in sheet when it is protected Darshan Excel Discussion (Misc queries) 0 March 10th 07 11:55 AM
insert picture into protected sheet justlearnin Excel Discussion (Misc queries) 0 October 2nd 06 04:25 PM
How can you insert a picture in a protected Excel Sheet? Mr.Williams Excel Worksheet Functions 0 December 8th 05 07: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


All times are GMT +1. The time now is 05:13 PM.

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

About Us

"It's about Microsoft Excel"