![]() |
![]() |
|
|||||||
| 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: Apr 2002
Posts: 19
|
is it safe to use this?
When I use it my program crashes, however if I run it in debug mode it works..To debug I put 2 print statements, one before the close method and one after the close method..it just sits on the close method and does not print my second debug line.. I am stumped! I have 2 workbooks open at the time..and I have to close the one that is active I used Activeworkbook.close please help tia |
|
|
|
|
|
#2 | |
|
Board Regular
Join Date: Apr 2002
Posts: 112
|
Quote:
Application.DisplayAlerts = False ActiveWorkbook.Close 'this is your line Application.DisplayAlerts = True |
|
|
|
|
|
|
#3 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
Or add a word, should close w/o save either way:
Code:
ActiveWorkbook.Close False Cheers, NateO ![]() [ This Message was edited by: NateO on 2002-05-10 14:34 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|