PC Review


Reply
Thread Tools Rate Thread

CutCopyMode -- What workbook was copied?

 
 
Greg Lovern
Guest
Posts: n/a
 
      23rd Jan 2008
If several workbooks are open, and CutCopyMode is True, is there any
way to tell what workbook was copied? I assume that if you know what
workbook was copied, then you know that whatever is selected in the
activesheet in that workbook is what was copied.

I'm deleting and recreating a custom toolbar on workbook activate/
deactivate, because otherwise the toolbar buttons sometimes point to
the wrong workbook (several workbooks have the same toolbar).

When creating the toolbar, I'm doing a CopyPicture and PasteFace to
get a custom icon on one of the toolbar buttons.

But CopyPicture takes Excel out of CutCopyMode, so I'm checking for
CutCopyMode, and only doing the CopyPicture/PasteFace if Excel is not
in CutCopyMode.

That means that when I copy from one workbook to another, the toolbar
button doesn't get its custom icon. I can set a global variable
indicating whether the custom icon has been pasted, and try to paste
it at other times, such as when clicking a toolbar button, but the
toolbar must be hidden for PasteFace to work, so it might look weird
if I did it just anytime.

If I knew what workbook had been copied, I could copy the selection in
that workbook's activesheet after doing the CopyPicture/PasteFace.

Any suggestions?


Thanks,

Greg
 
Reply With Quote
 
 
 
 
Greg Lovern
Guest
Posts: n/a
 
      23rd Jan 2008
On Jan 23, 3:49 pm, Greg Lovern <gr...@gregl.net> wrote:
> I assume that if you know what
> workbook was copied, then you know that whatever is selected in the
> activesheet in that workbook is what was copied.


Whoops, that's not true.

Same basic question though -- is there any way to tell what was
copied, if it might have been copied from another workbook?

Greg
 
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
Can a workbook be prevented from being copied? Nest Egg George Microsoft Excel Misc 1 7th Jan 2010 03:20 PM
year changes when copied from one workbook to another =?Utf-8?B?UGdhcmJhcmluaQ==?= Microsoft Excel Misc 6 20th Nov 2008 08:33 PM
Getting Sheets Copied From One Workbook to Another Without ....? Mhz Microsoft Excel New Users 6 18th Jul 2006 04:39 AM
year changes when copied from one workbook to another =?Utf-8?B?UGdhcmJhcmluaQ==?= Microsoft Excel Misc 1 3rd Mar 2005 08:19 PM
Why my cell format is not copied when I copied workbook? courtesio99 Microsoft Excel Programming 0 9th Jan 2004 07:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:13 AM.