Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can a workbook be prevented from being copied? | Excel Discussion (Misc queries) | |||
Getting Sheets Copied From One Workbook to Another Without ....? | New Users to Excel | |||
year changes when copied from one workbook to another | Excel Discussion (Misc queries) | |||
Preventing a workbook from being copied | Excel Programming | |||
Why my cell format is not copied when I copied workbook? | Excel Programming |