Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
And this....
Option Explicit Sub SaveCurrentWorkBook() Dim FileName As Variant 'Get the filename 'Returns False if the user cancels the dialog box. FileName = Application.GetSaveAsFilename _ (FilterIndex:=5, Title:="Save As") If FileName = False Then MsgBox "No file was saved." Exit Sub End If 'Display full name and path of file selected MsgBox "Your file will be saved as " & FileName End Sub "Robert Crandal" wrote: Does anyone have any sample VBA code which writes the current workbook into a new Excel file?? . |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to write the code for copying 2 or more sheets to a new workbook at the same time? | Excel Programming | |||
Place code from current workbook to new workbook | Excel Programming | |||
Application error when attempting to write code to a workbook | Excel Programming | |||
Possible to write VBA code to send out an EMAIL everytime a workbook is opened? | Excel Programming | |||
Write to closed workbook code | Excel Programming |