LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bon Bon is offline
external usenet poster
 
Posts: 23
Default How can I make the print icon trigger customized macro?

Hello all

How can I make the print icon trigger customized macro?
My idea:
I have a MS Access user interface with buttons. When I clicked the Save
Draft button, the MS Excel workbook will be saved in a folder. Inside
the MS Excel workbook, I created a watermark macro and I assigned the
watermark macro to the Print icon. (Right click the Print icon -
Customize - Right click the print icon - Assign Macro). When the user
clicks the Print icon, the DRAFT watermark will be added to all
worksheets and the print dialog box will be shown.

When I open a new workbook using one of the button in MS Access
interface and click the print icon, the assigned name will be changed.
So, an error "specified object can't be found" occurs. For example, I
assigned the macro (watermark) to the Print button in abc.xls workbook.
If I click the open button in the MS Access interface and click the
Print button, the assigned macro name will be changed to
cde.xls!watermark. The cde.xls is the recently opened workbook.

Can anyone give me some advices?

Thanks
Bon

 
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
How to create a customized icon for specific filename within toolb Eric Excel Discussion (Misc queries) 4 August 4th 09 04:40 PM
print a blank customized schedule Sandi W. Excel Worksheet Functions 1 September 7th 07 05:12 PM
How to make a cell trigger a Sound in Excel justice Excel Worksheet Functions 3 July 11th 06 10:22 AM
how to make the barcode reader trigger a macro in excel. CSL Excel Programming 3 July 19th 05 05:05 PM
Transferring customized icon bars in excel and word to new computer Anne Setting up and Configuration of Excel 5 March 10th 05 09:52 PM


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