LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 337
Default Sheet to close

Why won't this work?

oldjayo

Sub test()

Dim wsShtToSave As Worksheet
Set wsShtToSave = ActiveSheet
If wsShtToSave= "Master" Then
ActiveWorkbook.Save
ActiveWorkbook.Close
End If
End Sub

 
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
Ecape key to close/exit sheet count Excel Programming 2 March 31st 09 03:50 PM
how to use Application.VLookup on close sheet Dan Excel Programming 2 June 4th 08 10:28 AM
Vlookup from close sheet via VBA Dan Excel Programming 4 June 4th 08 10:28 AM
Before close - not always deleting sheet- WHY?? Patti[_2_] Excel Programming 2 August 2nd 05 05:08 PM
Hanging on sheet close Jesse[_4_] Excel Programming 2 December 4th 03 09:21 AM


All times are GMT +1. The time now is 04:30 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"