Private Sub cmdCreate_click()
Application.ScreenUpdating = False
Application.Visible = False
'create "out" folders
Call CreateFolders
Label1.Visible = False
Label3.Visible = False
Label4.Visible = False
Label5.Visible = False
Label6.Visible = False
Label7.Visible = False
Label8.Visible = False
Label10.Visible = False
Label11.Visible = False
Label12.Visible = False
Label13.Visible = False
Label14.Visible = False
txtYear.Visible = False
cboQuarter.Visible = False
txtRT11.Visible = False
txtRT12.Visible = False
txtRT13.Visible = False
txtRT14.Visible = False
txtRT21.Visible = False
txtRT22.Visible = False
txtRT23.Visible = False
txtRT24.Visible = False
cmdCreate.Visible = False
cmdClear.Visible = False
cmdCancel.Visible = False
Label15.Visible = True
Label16.Visible = True
cmdAbort = True
Dim lDocCount As Long
Dim i As Integer
Dim doc As Document
Dim lMaxProgressBarWidth As Long
Dim sIncrement As Single
' Resize the UserForm
Me.Width = 240
Me.Height = 120
' Resize the label
Me.Label16.Caption = ""
Me.Label16.Width = 0
Me.Label16.BackColor = wdColorBlue
lMaxProgressBarWidth = 200
lDocCount = 287
sIncrement = lMaxProgressBarWidth / lDocCount
i = 1
For Each doc In Documents
Me.Label16.Width = Format(Me.Label16.Width + sIncrement, "#.##")
Me.Caption = "Creating " & CStr(i) & " of " & CStr(lDocCount)
Me.Repaint
i = i + 1
Next doc
'open, merge, save, close all docs
Call Proposal1
Call Proposal2
Call Proposal3
Call Proposal4
Call Proposal5
Call Proposal6
Application.Visible = True
MsgBox "File Creation Complete.", vbOKOnly, "Complete"
'close document if more Word documents are open, otherwise close Word application
If Documents.Count > 1 Then
' more than one doc open
ActiveDocument.Close
Else ' count = 1
ActiveDocument.Close
Application.Quit
End If
End Sub