PC Review


Reply
Thread Tools Rate Thread

copy text and logo from protected, hidden sheet

 
 
BEEJAY
Guest
Posts: n/a
 
      25th Mar 2010
Greetings:
Required to copy text and logos from what is now a password protected,
hidden sheet called "HEADINGS".
Paste onto NON hidden sheet called "CoverPage".

The follow code shown below worked great during my set-ups and trials, until
I hid the sheet.
I found out one can't select or actually activate a hidden sheet.
When I did use .activate (regarding hidden sheet), I could did the text, but
not the logos.
Is there a way to accomplish this without un-hiding the sheet?

Sub CdnContract()

Application.ScreenUpdating = False
Application.EnableEvents = False ' I don't know why this is in here

Sheets("CoverPage").Select
Call WSh_Unprotect

Sheets("HEADINGS").Activate
Call WSh_Unprotect

' Copy and Paste Canadian Heading and Logos
Worksheets("HEADINGS").Range("HEAD_CDN").Copy
ActiveSheet.Paste Destination:=Worksheets("Coverpage").Range("B2")

Application.EnableEvents = True
Application.ScreenUpdating = True

Call WSh_Protect

Sheets("HEADINGS").Activate
Call WSh_Protect

Sheets("CoverPage").Select

End Sub
 
Reply With Quote
 
 
 
 
pbart
Guest
Posts: n/a
 
      25th Mar 2010
Hi

Not a direct answer to your question but would leaving the logos on the
"CoverPage" but hidden suit your purpose just as well? A command such as

Shapes("Picture 1").Visible = msoTrue

would 'dress' the page as you require; at least as a temporary workaround.

"BEEJAY" wrote:

> Greetings:
> Required to copy text and logos from what is now a password protected,
> hidden sheet called "HEADINGS".
> Paste onto NON hidden sheet called "CoverPage".
>
> The follow code shown below worked great during my set-ups and trials, until
> I hid the sheet.
> I found out one can't select or actually activate a hidden sheet.
> When I did use .activate (regarding hidden sheet), I could did the text, but
> not the logos.
> Is there a way to accomplish this without un-hiding the sheet?
>
> Sub CdnContract()
>
> Application.ScreenUpdating = False
> Application.EnableEvents = False ' I don't know why this is in here
>
> Sheets("CoverPage").Select
> Call WSh_Unprotect
>
> Sheets("HEADINGS").Activate
> Call WSh_Unprotect
>
> ' Copy and Paste Canadian Heading and Logos
> Worksheets("HEADINGS").Range("HEAD_CDN").Copy
> ActiveSheet.Paste Destination:=Worksheets("Coverpage").Range("B2")
>
> Application.EnableEvents = True
> Application.ScreenUpdating = True
>
> Call WSh_Protect
>
> Sheets("HEADINGS").Activate
> Call WSh_Protect
>
> Sheets("CoverPage").Select
>
> End Sub

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
showing hidden rows on a protected sheet cathy Microsoft Excel Misc 10 6th Jun 2008 10:13 PM
Copy hidden sheet and then make copy visible HELP? quidsin@gmail.com Microsoft Excel Programming 5 7th Aug 2007 02:31 PM
Strange problems with setting hidden property of a range when sheet protected with UserInterfaceOnly heikki.vuolteenaho@gmail.com Microsoft Excel Programming 2 6th Jun 2006 04:15 PM
Copy from Protected sheet =?Utf-8?B?UmFvIFJhdGFuIFNpbmdo?= Microsoft Excel New Users 2 8th Mar 2006 06:20 AM
copy to protected sheet Abdul Salam Microsoft Excel Programming 0 19th Jul 2003 01:06 PM


Features
 

Advertising
 

Newsgroups
 


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