![]() |
![]() |
|
|||||||
| 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: Feb 2002
Posts: 26
|
I created a workbook for a class project. I have navigation buttons that move me thru it forward and backward. What I would like to do is create a macro for a button that closes excel and doesnt ask for the save prompt.
|
|
|
|
|
|
#2 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
Try:
Code:
sub clsIt() Dim myAp As Excel.Application thisworkbook.close false myAp.quit end sub Cheers, NateO [ This Message was edited by: NateO on 2002-04-04 17:01 ] |
|
|
|
|
|
#3 |
|
New Member
Join Date: Feb 2002
Posts: 26
|
Thanks for the help. However it doesnt close Excel. It closes the Workbook just fine but not the program. Any suggestions about that ?
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
Try the following:
With Application .DisplayAlerts = False .Quit End With
__________________
Kind regards, Al Chara |
|
|
|
|
|
#5 |
|
New Member
Join Date: Feb 2002
Posts: 26
|
Thank You that work super
Much appreciated. I gave this site to my teach. |
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Feb 2002
Location: Tulsa, OK
Posts: 354
|
|
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Feb 2002
Location: Tulsa, OK
Posts: 354
|
eddieque,
What do you mean you have a macro that move you forward and backward through your workbook? You mean go from one worksheet to the next and back? Care to share the code for that? |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|