![]() |
![]() |
|
|||||||
| 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 |
|
New Member
Join Date: Mar 2002
Posts: 13
|
Is there cade I can put in the Beforeclose module of a workbook, to open another woorbook?
workbook.open c:Updates.xls Thanks Wrecker |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
|
Quote:
Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean) Workbooks.Open FileName:="C:Updates.xls" End Sub Regards, _________________ Barrie Davidson My Excel Web Page [ This Message was edited by: Barrie Davidson on 2002-03-04 17:12 ] |
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Allentown, PA
Posts: 2,510
|
You can record that macro. Store it in the Workbook, then rename it. Here's the code:
Private Sub Workbook_BeforeClose(Cancel As Boolean) Workbooks.Open Filename:="C:WINDOWSDesktopMyfile.xls" End Sub
__________________
~Anne Troy |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|