The only problem is that each Work Book is saved as a differnt name. The Name
of the Sheet in each Saved Work Book is going to be "Job Data". Once I get
the sheet designed I am just going to add all the Text Boxes, Combo Boxes,
etc... to the sheet
then make it a hidden sheet.
Example:
'Save Engineering Spec 11 Control Button
Private Sub Save_Engineering_Spec_11_Click()
Dim strFile As String
Dim fileSaveName As Variant
Dim myMsg As String
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
fileSaveName = Application.GetSaveAsFilename _
(InitialFileName:=strFile, _
fileFilter:="Excel Macro-Enabled Workbook(*.xlsm),(*.xlsm")
If fileSaveName <> False Then
ActiveWorkbook.SaveAs Filename:= _
fileSaveName, _
FileFormat:=xlOpenXMLWorkbookMacroEnabled, _
CreateBackup:=False
Else
MsgBox prompt:=Engineer_2.Value & vbLf & "You canceled saving the
Engineering Spec." & vbCrLf & _
"Engineering Spec was not Saved.", _
Title:="C.E.S."
End If
End Su
------------------------------------------------------------------------------------------------
I am just not sure how to add the code to my "Open_Existing_Engineer_Spec_9"
Control Button. Here is the code I am using to open the exsisting Work Book.
This code works perfect cause it only allows the user to open the correct
Work Book name "Spec *.xlsm"
' Open Existing Engineering Spec 9 Control Button
Private Sub Open_Existing_Engineer_Spec_9_Click()
Dim FileToOpen As Variant
Dim bk As Workbook
Dim LastBackSlashPos As Long
Dim myMsg As String
FileToOpen = Application.GetOpenFilename("SPEC (*.xlsm), Spec*.xlsm")
If FileToOpen = False Then
MsgBox prompt:=Engineer_2.Value & vbLf & "You canceled opening an
Engineering Spec", _
Title:="C.E.S."
' MsgBox "User Canceled Operation, No Engineering Spec was Opened",
, "C.E.S."
Exit Sub
End If
LastBackSlashPos = InStrRev(FileToOpen, "\", -1, vbTextCompare)
If UCase(Mid(FileToOpen, LastBackSlashPos + 1, 4)) <> UCase("SPEC") Then
MsgBox prompt:=Engineer_2.Value & vbLf & "You can only open an
exsisting Engineering Spec", _
Title:="C.E.S."
Exit Sub
End If
Set bk = Workbooks.Open(Filename:=FileToOpen)
End Su
------------------------------------------------------------------------------------------------
One thing I can say is that I have an advantage over most people using the
same method as you and I for doing this kind of stuff. I have to assume you
are doing your "Critical Path Method" on a bunch of 8 1/2" x 11" paper, where
being an Engineer I have a huge Printer that can print 48" x 150' if I need
it. I printed my Flow Chart on a 48" x 72" sheet and have it taped on my
wall. Then as each Block is complete, I just color it with a high lighter to
show it as completed.
Nice wall paper , huh?