LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Clipboard turn empty running worksheet.unprotect - workaround ?

Hi,

I have a worksheet I need to have protected, and when I run code to restore
cell format, I unprotect it temporary. However, this causes clipboard to
turn empty and since I run the code both at worksheet_activate and
worksheet_change events, the result is that you can't copy-paste between
sheets.

At line below, the clipboard turn empty ...
"Application.Worksheets(XshtName).UnProtect Password:=sPass"

1/ Is there a way to work around this and still use the code both at
worksheet_change and worksheet_activate?
2/ The reason why I have it on worksheet_activate is because I want to
restore cell formats when drag and drop occure from other sheets - - it
doesn't trig the worksheet_change event, I'm told. Right? Workaround?


/Kind regards


 
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
Clipboard empty but still get waring that clipboard is full Steve Excel Discussion (Misc queries) 0 June 17th 08 09:05 PM
Clipboard empty but get cannot empty CB when trying to copy Peter @ ServiceMaster Excel Worksheet Functions 0 February 22nd 07 03:58 PM
How do I turn off clipboard permanently? Rhae Excel Discussion (Misc queries) 3 September 28th 06 03:37 PM
Can't turn off clipboard permanently [email protected] Excel Discussion (Misc queries) 0 January 10th 06 02:54 PM
How can I permanently turn-off the Clipboard? 3Kids14 Excel Discussion (Misc queries) 1 August 16th 05 01:11 PM


All times are GMT +1. The time now is 02:43 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"