Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default save Changes and close book



Hi there,

I use the personal VB workbook to run a series of macros. They run a
macro on the active workbook. At the end of the macros I need to tell
the Macro within the Personal workbook to close the active workbook on
which it has just run the macros... , anyone know the VB for that...???

Regards

D

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default save Changes and close book

ActiveWorkbook.Close SaveChanges:=True

--
Regards,
Tom Ogilvy


"Darin Kramer" wrote:



Hi there,

I use the personal VB workbook to run a series of macros. They run a
macro on the active workbook. At the end of the macros I need to tell
the Macro within the Personal workbook to close the active workbook on
which it has just run the macros... , anyone know the VB for that...???

Regards

D

*** Sent via Developersdex http://www.developersdex.com ***

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
default template (book.xlt) doesn't close Michael Excel Discussion (Misc queries) 3 December 2nd 05 05:13 PM
Create new book..paste data..save..close [email protected] Excel Programming 1 September 12th 05 12:27 AM
Open book, check for macros, close book Robin Hammond[_2_] Excel Programming 5 March 31st 05 06:09 PM
Copy and paste ranges from a close book using Validation stakar[_19_] Excel Programming 0 June 24th 04 02:37 PM
close work book via macro Sunil Patel Excel Programming 3 January 7th 04 09:56 PM


All times are GMT +1. The time now is 01:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"