![]() |
![]() |
|
|||||||
| 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 |
|
Guest
Posts: n/a
|
I am using code to open another workbook from an open workbook.
In the workbook "SheetChange"module I have: Workbooks.Open Filename:="P:trial5.xls" works fine... After I update the ("Trial5") workbook, and close it, I get an EXE crash. I think I need to write the code to return and activate the original workbook ("PSFDB2"), but I dont know the code. Workbook.activate filename:="P:PSFDB.xls"....won't work Thanks Wrecker |
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
|
Quote:
Workbooks("PSFDB.xls").Activate I'm curious if this will solve your problem. Please let me know if it does. Regards,
__________________
Barrie Davidson "You're only given a little spark of madness. You mustn't lose it." - Robin Williams |
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Posts: 13
|
Thanks.it worked fine
Wrecker |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|