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: 99
Default Title bar not up-dating after running the macro below

Title bar (at the very top in blue) doesn’t update.

The macro below nearly does what I want – but after the save has taken
place the Title bar still shows the previous file name.

I need it to up date.

John



Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
mydrive = "H:"
mydir = "Temp"
myname = Sheets("sheet1").Range("a1")
ms = mydrive & "\" & mydir & "\" & myname & ".xls"
ActiveWorkbook.SaveCopyAs Filename:=ms
Cancel = True
ActiveWorkbook.Saved = True
msg = MsgBox("The workbook has been saved as " & ms, vbInformation +
vbOKOnly, "Save As")

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
Dating a file. Matt S Excel Discussion (Misc queries) 4 July 22nd 08 06:57 PM
How do I change from american dating to uk dating? Ile Esturo Excel Worksheet Functions 1 November 28th 06 04:45 PM
How to update dating? Craig New Users to Excel 1 October 28th 06 08:09 PM
Dating Problem Gary's Student Excel Programming 4 June 21st 05 12:47 PM
dating problems! Jose Mourinho Excel Worksheet Functions 4 January 12th 05 05:03 PM


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