The macro code is the same in both the source file and the 2nd file. Here it is. The Aut

pen and Auto_Close are at the bottom. Thanks fo taking a looksee.
Option Explicit
Global MyMenuItem1 As Object 'Export Menu
Public MySubMenuItem1 As Object 'Invoke Export Script
Public MySubMenuItem2 As Object 'Insert Template Tables
Dim MyOutput As String
Dim MyPath As String
Dim MyRow As Integer
Dim MsgText As String
Dim MsgTitle As String
Dim LenderID As Double
Public Sub StartExport()
Dim ExportSheetFound As Boolean
Dim LenderIDFound As Boolean
Dim CreationDate As String
Dim i As Integer
Dim x As Integer
Dim MBRP As Integer
MyRow = 2
ExportSheetFound = False
LenderIDFound = False
CreationDate = Year(Now) & "/" & Month(Now) & "/" & Day(Now)
CreationDate = CreationDate & " " & Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
'CHECK FOR EXPORT SHEET AND SELECT IF FOUND
'IF NOT FOUND, SEND MSG TO USER AND END
For i = 1 To Sheets.Count
If Sheets(i).Name = "Export" Then
Sheets(i).Select
ExportSheetFound = True
End If
Next i
'CHECK FOR LENDER ID SHEET AND GET LENDER ID
For i = 1 To Sheets.Count
If Sheets(i).Name = "Lender ID" Then
LenderIDFound = True
LenderID = Range("'Lender ID'!B3"

End If
Next i
If ExportSheetFound = True And LenderIDFound = True Then
'SELECT OUTPUT PATH
MsgText = "Export to Floppy?" & Chr(13)
MsgText = MsgText & "Selecting NO will output the Export.txt file to C:\Program Files\LoanRates Lenders\"
MsgTitle = "Select Output Path"
MBRP = MsgBox(MsgText, vbYesNo, MsgTitle)
If MBRP = vbYes Then
MyPath = "a:\Export.txt"
Else
MyPath = "c:\Program Files\LoanRates Lenders\Export.txt"
End If
Application.ScreenUpdating = False
On Error Resume Next
Open MyPath For Output As #1
If Err.Number = 76 Then
MsgText = "The specified path does not exist. Do you want to create it now?"
MsgTitle = "Path Not Found"
MBRP = MsgBox(MsgText, vbQuestion + vbYesNo, MsgTitle)
If MBRP = vbYes Then
MkDir "c:\Program Files\LoanRates Lenders\"
Else
MsgText = "Export Aborted"
MsgTitle = "Export Aborted"
MsgBox MsgText, vbInformation + vbOKOnly, MsgTitle
End
End If
Else
If Err.Number = 71 Then
MsgText = "Please insert floppy disk into drive A and try again"
MsgTitle = "Error = Disk not ready"
MsgBox MsgText, vbCritical + vbOKOnly, MsgTitle
End
End If
Close #1
End If
Open MyPath For Output As #1
Range("B2"

.Select
Do Until ActiveCell.Value = "END" Or MyRow > 10000
If ActiveCell.Offset(0, 1) <> "" Then
MyOutput = CreationDate & ","
MyOutput = MyOutput & LenderID & "," & ActiveCell.Value & ","
MyOutput = MyOutput & Chr(34) & ActiveCell.Offset(0, 1) & Chr(34)
For x = 2 To 57
MyOutput = MyOutput & "," & ActiveCell.Offset(0, x)
Next x
Print #1, MyOutput
End If
MyRow = MyRow + 1
MyOutput = ""
Range("B" & MyRow).Select
Loop
Close #1
Application.ScreenUpdating = True
Range("A1"

.Select
Range("A2"

.Select
MsgText = "Export Complete"
MsgTitle = "Export Complete"
MsgBox MsgText, vbInformation + vbOKOnly, MsgTitle
Else
If ExportSheetFound = False Then
MsgText = "Export worksheet not found."
MsgTitle = "Error - Data not found"
MsgBox MsgText, vbCritical + vbOKOnly, MsgTitle
ElseIf LenderIDFound = False Then
MsgText = "Lender ID not found."
MsgTitle = "Error - Data not found"
MsgBox MsgText, vbCritical + vbOKOnly, MsgTitle
End If
End If
End Sub
Public Sub InsertTemplateTables()
Dim i As Integer
Dim MyActiveWorkbook As String
Dim Found1 As Boolean
Dim Found2 As Boolean
Dim MsgText1 As String
MyActiveWorkbook = ActiveWorkbook.Name
Found1 = False
Found2 = False
'CHECK FOR EXISTING SHEETS AND IF FOUND
'SEND MESSAGE TO USER
For i = 1 To Sheets.Count
If Sheets(i).Name = "Export" Then
Found1 = True
End If
Next i
For i = 1 To Sheets.Count
If Sheets(i).Name = "Lender ID" Then
Found2 = True
End If
Next i
If Found1 = False Then
Windows("LROLExportVBA.xls"

.Activate
Sheets("Export"

.Copy After:=Workbooks(MyActiveWorkbook).Sheets(Workbooks(MyActiveWorkbook).Sheets.Count)
Sheets("Export"

.Name = "Export"
Sheets("Export"

.Unprotect password:="ccpace"
Else
MsgText1 = "The Export sheet already exists in this file and was not created."
End If
If Found2 = False Then
MsgText = "Enter the Lender ID"
MsgTitle = "Enter Lender ID"
LenderID = InputBox(MsgText, MsgTitle)
Windows("LROLExportVBA.xls"

.Activate
Sheets("Lender ID"

.Copy After:=Workbooks(MyActiveWorkbook).Sheets(Workbooks(MyActiveWorkbook).Sheets.Count)
'PROTECT LENDER ID WORKSHEET
ActiveSheet.Unprotect password:="ccpace"
Range("B3"

= LenderID
ActiveSheet.Protect password:="lender", DrawingObjects:=True, Contents:=True, Scenarios:=True
Else
MsgText1 = MsgText1 & Chr(13) & "The Lender ID sheet already exists in this file and was not created."
End If
If Found1 = True Or Found2 = True Then
MsgBox MsgText1, vbInformation + vbOKOnly, "Sheet already exists"
End If
End Sub
Public Sub Auto_open()
Set MyMenuItem1 = CommandBars("Worksheet Menu Bar"

With MyMenuItem1
.Controls.Add(Type:=msoControlPopup).Caption = "Export"
End With
Set MySubMenuItem1 = CommandBars("Worksheet Menu Bar"

.Controls("Export"

With MySubMenuItem1
.Controls.Add(Type:=msoControlButton, Id:=2949, Before:=1).Caption = "Export to TXT"
.Controls("Export to TXT"

.OnAction = "StartExport"
End With
' Set MySubMenuItem2 = CommandBars("Worksheet Menu Bar"

.Controls("Export"

' With MySubMenuItem2
' .Controls.Add(Type:=msoControlButton, Id:=2949, Before:=1).Caption = "Insert Template Tables"
' .Controls("Insert Template Tables"

.OnAction = "InsertTemplateTables"
' End With
End Sub
Public Sub Auto_close()
Dim i As Integer
i = 1
Do Until CommandBars("Worksheet menu bar"

.Controls.Count = 10
If CommandBars("Worksheet menu bar"

.Controls(i).Caption = "Export" Then
CommandBars("Worksheet menu bar"

.Controls(i).Delete
i = i - 1
End If
i = i + 1
Loop
End Sub