![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 182
|
Can you make a macro run when you open a workbook. I need it to select a printer.
|
|
|
|
|
|
#2 |
|
.
Join Date: Feb 2002
Location: Akron, Ohio USA
Posts: 789
|
Yes, on the ThisWorkbook object, put the code in the Workbook_Open module.
You want to somewhat follow the instructions in this tip: http://www.mrexcel.com/tip055.shtml but instead of putting the code in the Workbook_BeforePrint module, choose Open from the right dropdown above the Code window. Bill
__________________
Preview my latest book for Free |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|