#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 64
Default auto close workbook

what code would i have to put in VBA (data) to close the data workbook when i
close the (test) workbook or visa versa
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 561
Default auto close workbook

Check the Event-Macro: Workbook_BeforeClose
Micky


uk" wrote:

what code would i have to put in VBA (data) to close the data workbook when i
close the (test) workbook or visa versa

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 561
Default auto close workbook

To be more precise - use the hereunder code in the TEST WB:
====================================
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Workbooks("DATA.XLS").Close SaveChanges:=False
End Sub
==========
Micky


"מיכאל (מיקי) אבידן" wrote:

Check the Event-Macro: Workbook_BeforeClose
Micky


uk" wrote:

what code would i have to put in VBA (data) to close the data workbook when i
close the (test) workbook or visa versa

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
Auto save and close Frank Excel Worksheet Functions 0 November 19th 09 10:50 AM
Auto close .csv files saman110 via OfficeKB.com Excel Discussion (Misc queries) 2 September 21st 07 11:00 PM
Auto close userform AOU Excel Discussion (Misc queries) 0 December 28th 06 06:54 PM
auto close userform AOU Excel Discussion (Misc queries) 0 December 23rd 06 10:36 PM
Auto-save worksheet on close? [email protected] Excel Discussion (Misc queries) 1 January 2nd 06 02:12 PM


All times are GMT +1. The time now is 12:15 AM.

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"