Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I pasted this code in my User Form to assign the Name & Save a Workbook as
varibles from different Text Boxes. For some reason it assigns the name correctly, but when you click on the save in the Save As Dialog box, only the Error Message pops up and the Workbookbook does not save. What am I missing? 'Save Engineering Spec 11 Control Button Private Sub Save_Eng_Spec_11_Click() Dim strFile As String Dim bk As Workbook strFile = "SPEC " & TEO_No_1.Value _ & Space(1) & CLLI_Code_1.Value _ & Space(1) & CES_No_1.Value _ & Space(1) & TEO_Appx_No_2.Value strFile = Application.GetSaveAsFilename( _ InitialFileName:=strFile, _ fileFilter:="Excel Files (*.xls;*.xlsm;*.xlst), " & _ "*.xls;*.xlsm;*.xlst") If FileToSave = False Then MsgBox "The Save Method Failed, Eng Spec was not Saved", , "C.E.S." Exit Sub End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Opening Workbook from User Form | Excel Programming | |||
Date field in user form & Loading a user form on opening workbook | Excel Programming | |||
Using Button on User Form to save Data to specific Cell?? | Excel Programming | |||
VBA Question - Canceling a 'Save As' command from a user form | Excel Programming |