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: 224
Default CutCopyMode -- What workbook was copied?

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
 
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
Can a workbook be prevented from being copied? Nest Egg George[_2_] Excel Discussion (Misc queries) 1 January 7th 10 03:20 PM
Getting Sheets Copied From One Workbook to Another Without ....? Mhz New Users to Excel 6 July 18th 06 04:39 AM
year changes when copied from one workbook to another Pgarbarini Excel Discussion (Misc queries) 1 March 3rd 05 08:19 PM
Preventing a workbook from being copied CiaraG[_4_] Excel Programming 1 March 4th 04 01:24 PM
Why my cell format is not copied when I copied workbook? courtesio99[_28_] Excel Programming 0 January 9th 04 07:03 AM


All times are GMT +1. The time now is 11:36 AM.

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"