Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Executing Macro Cancels CutCopyMode

I have a macro that removes a workbook specific menu in the
Workbook_Deactivate event. The problem is that if the user wants to copy
information from this workbook into another, the act of flipping to the
target workbook causes the macro to run and this seems to cancel the copy
operation and clear the clipboard. Is there any way around this or am I
stuck with never being able to copy information from this workbook to
another?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Executing Macro Cancels CutCopyMode


Mitch Powell;490391 Wrote:
I have a macro that removes a workbook specific menu in the
Workbook_Deactivate event. The problem is that if the user wants to
copy
information from this workbook into another, the act of flipping to
the
target workbook causes the macro to run and this seems to cancel the
copy
operation and clear the clipboard. Is there any way around this or am
I
stuck with never being able to copy information from this workbook to
another?

If you can cope with the workbook specific menu still being present in
the destination workbook then move the macro from the
workbook_deactivate event to the workbook_beforeclose event?

Perhaps another solution: can you just hide that menu/portion of a
menu, rather than removing it, in the workbook_deactivate event, and
remove it altogether in the worbook_beforeclose event? In the hope that
just hiding (.visible = False?) won't clear the clipboard.


--
p45cal

*p45cal*
------------------------------------------------------------------------
p45cal's Profile: http://www.thecodecage.com/forumz/member.php?userid=558
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=135197

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Executing Macro Cancels CutCopyMode

Doesn't work. It appears that any menu manipulations at all set CopyCutMode
= False

"p45cal" wrote:


Mitch Powell;490391 Wrote:
I have a macro that removes a workbook specific menu in the
Workbook_Deactivate event. The problem is that if the user wants to
copy
information from this workbook into another, the act of flipping to
the
target workbook causes the macro to run and this seems to cancel the
copy
operation and clear the clipboard. Is there any way around this or am
I
stuck with never being able to copy information from this workbook to
another?

If you can cope with the workbook specific menu still being present in
the destination workbook then move the macro from the
workbook_deactivate event to the workbook_beforeclose event?

Perhaps another solution: can you just hide that menu/portion of a
menu, rather than removing it, in the workbook_deactivate event, and
remove it altogether in the worbook_beforeclose event? In the hope that
just hiding (.visible = False?) won't clear the clipboard.


--
p45cal

*p45cal*
------------------------------------------------------------------------
p45cal's Profile: http://www.thecodecage.com/forumz/member.php?userid=558
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=135197


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Executing Macro Cancels CutCopyMode


Mitch Powell;490495 Wrote:
Doesn't work. It appears that any menu manipulations at all set
CopyCutMode
= False

"p45cal" wrote:


Mitch Powell;490391 Wrote:
I have a macro that removes a workbook specific menu in the
Workbook_Deactivate event. The problem is that if the user wants

to
copy
information from this workbook into another, the act of flipping

to
the
target workbook causes the macro to run and this seems to cancel

the
copy
operation and clear the clipboard. Is there any way around this or

am
I
stuck with never being able to copy information from this workbook

to
another?

If you can cope with the workbook specific menu still being present

in
the destination workbook then move the macro from the
workbook_deactivate event to the workbook_beforeclose event?

Perhaps another solution: can you just hide that menu/portion of a
menu, rather than removing it, in the workbook_deactivate event, and
remove it altogether in the worbook_beforeclose event? In the hope

that
just hiding (.visible = False?) won't clear the clipboard.


--
p45cal

*p45cal*

------------------------------------------------------------------------
p45cal's Profile: 'The Code Cage Forums - View Profile: p45cal'

(http://www.thecodecage.com/forumz/member.php?userid=558)
View this thread: 'Executing Macro Cancels CutCopyMode - The Code

Cage Forums'
(http://www.thecodecage.com/forumz/sh...d.php?t=135197)



So you can't cope with the workbook specific menu still being present
in the destination workbook?


--
p45cal

*p45cal*
------------------------------------------------------------------------
p45cal's Profile: http://www.thecodecage.com/forumz/member.php?userid=558
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=135197

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
I am using a macro and it cancels my formula Nelly Excel Worksheet Functions 3 September 6th 09 05:40 PM
Executing a macro WLMPilot Excel Programming 2 January 17th 08 03:43 PM
Executing Macro Help [email protected] Excel Programming 7 May 1st 07 08:23 AM
executing a macro within another brian Excel Discussion (Misc queries) 3 July 5th 06 01:22 AM
What macro is executing? Ken Loomis Excel Programming 3 October 13th 04 05:39 AM


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