Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default Worksheet_Activate event clears clipboard?

Hi All,

I am using the worksheet_activate and worksheet_deactivate events to turn on
and off Excels automatic calculation so that when I select "Sheet_1" it
turns calculate on and off when the sheet is deselected.

The problem is that using the events in this way appears to clear the
clipboard. As a result I am unable to manually paste data to Sheet_1.

How would I get around this?

I am using the application.calculation = xlManual to turn off and on
calculation.

Thanks in advance

Andi


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Worksheet_Activate event clears clipboard?

It would be difficult. If performing an action causes an adverse situation,
then the work around is to avoid the action. In this case, I think you
might have to give something up. You are correct that many actions
performed by macros cause the clipboard to be cleared.

--
Regards,
Tom Ogilvy


"Andibevan" wrote in message
...
Hi All,

I am using the worksheet_activate and worksheet_deactivate events to turn

on
and off Excels automatic calculation so that when I select "Sheet_1" it
turns calculate on and off when the sheet is deselected.

The problem is that using the events in this way appears to clear the
clipboard. As a result I am unable to manually paste data to Sheet_1.

How would I get around this?

I am using the application.calculation = xlManual to turn off and on
calculation.

Thanks in advance

Andi




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Worksheet_Activate event clears clipboard?

"Tom Ogilvy" wrote in message
...
It would be difficult. If performing an action causes an adverse
situation,
then the work around is to avoid the action. In this case, I think you
might have to give something up. You are correct that many actions
performed by macros cause the clipboard to be cleared.


Does it clear the windows clipboard or just deactivate cutcopymode in excel?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Worksheet_Activate event clears clipboard?

CutCopyMode for sure - but that is usually what someone is doing when they
copy in Excel.

--
Regards,
Tom Ogilvy

"Damien McBain" wrote in message
...
"Tom Ogilvy" wrote in message
...
It would be difficult. If performing an action causes an adverse
situation,
then the work around is to avoid the action. In this case, I think you
might have to give something up. You are correct that many actions
performed by macros cause the clipboard to be cleared.


Does it clear the windows clipboard or just deactivate cutcopymode in

excel?




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Worksheet_Activate event clears clipboard?

So you could still paste into excel but use PasteSpecial to specify ho (ie
xlvalues?).

"Tom Ogilvy" wrote in message
...
CutCopyMode for sure - but that is usually what someone is doing when they
copy in Excel.

--
Regards,
Tom Ogilvy

"Damien McBain" wrote in message
...
"Tom Ogilvy" wrote in message
...
It would be difficult. If performing an action causes an adverse
situation,
then the work around is to avoid the action. In this case, I think you
might have to give something up. You are correct that many actions
performed by macros cause the clipboard to be cleared.


Does it clear the windows clipboard or just deactivate cutcopymode in

excel?








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Worksheet_Activate event clears clipboard?

You will have to test it if you want the authoritative answer for your
situation.

--
Regards,
Tom Ogilvy


"Damien McBain" wrote in message
...
So you could still paste into excel but use PasteSpecial to specify ho (ie
xlvalues?).

"Tom Ogilvy" wrote in message
...
CutCopyMode for sure - but that is usually what someone is doing when

they
copy in Excel.

--
Regards,
Tom Ogilvy

"Damien McBain" wrote in message
...
"Tom Ogilvy" wrote in message
...
It would be difficult. If performing an action causes an adverse
situation,
then the work around is to avoid the action. In this case, I think

you
might have to give something up. You are correct that many actions
performed by macros cause the clipboard to be cleared.

Does it clear the windows clipboard or just deactivate cutcopymode in

excel?








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
launching Excel clears clipboard Richard Excel Discussion (Misc queries) 0 July 17th 08 01:51 PM
Strange behaviour - loading Excel clears Clipboard Trevor Shuttleworth Excel Discussion (Misc queries) 1 August 19th 06 10:04 PM
Worksheet_SelectionChange clears clipboard - can I stop this? ned Excel Programming 0 June 9th 04 07:02 PM
Really Need Help: side effect clears clipboard!!! Bura Tino Excel Programming 3 February 28th 04 12:44 PM
Clear Clipboard on Workbook Close Event (Excel XP) Culichi Excel Programming 2 February 23rd 04 06:21 PM


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