Sub ProcessnaTEST()
Dim s As Integer
Dim Prompt As String
s = VBAProject.NightAuditP.s
Currentprogress = VBAProject.NightAuditP.Currentprogress
Progressprocentage = VBAProject.NightAuditP.Progressprocentage
Barwidth = VBAProject.NightAuditP.Barwidth
Select Case s
Case Is = 0
Prompt = NightAuditP.ShowMsg("Are you ready to start the night audit file process?" & vbNewLine _
& "This is for the date of: " & Format(Date - 1, "mm-dd-yyyy"), , (NightAuditP.Previous.Visible = False), Button2Text:="Start")
NightAuditP.Bar.Width = VBAProject.NightAuditP.Barwidth
NightAuditP.TextP.Caption = VBAProject.NightAuditP.Progressprocentage & "% Complete"
Case Is = 1
Prompt = NightAuditP.ShowMsg("Please Run End Of Day in Opera now." & vbNewLine & "Click OK AFTER Opera is completed.", , Button1Text:="Back", Button2Text:="Next")
NightAuditP.Bar.Width = VBAProject.NightAuditP.Barwidth
NightAuditP.TextP.Caption = VBAProject.NightAuditP.Progressprocentage & "% Complete"
Case Is = 2
Prompt = NightAuditP.ShowMsg("Have you saved the" & vbNewLine & "Adjustment Log" & vbNewLine _
& " & " & vbNewLine & "Daily Cash Log?", , Button1Text:="Back", Button2Text:="Next")
NightAuditP.Bar.Width = VBAProject.NightAuditP.Barwidth
NightAuditP.TextP.Caption = VBAProject.NightAuditP.Progressprocentage & "% Complete"
Case Is = 3
Prompt = NightAuditP.ShowMsg("Please save all required documents to complete final packet." & vbNewLine _
& "Click OK once completed.", , Button1Text:="back", Button2Text:="next")
NightAuditP.Bar.Width = VBAProject.NightAuditP.Barwidth
NightAuditP.TextP.Caption = VBAProject.NightAuditP.Progressprocentage & "% Complete"
Case Is = 4
Prompt = NightAuditP.ShowMsg("The process will now get all related files." & vbNewLine & _
"If the process is stopped here nothing will be changed." _
& vbNewLine & "Do You Wish To Continue?", , Button1Text:="Back", Button2Text:="Next")
NightAuditP.Bar.Width = VBAProject.NightAuditP.Barwidth
NightAuditP.TextP.Caption = VBAProject.NightAuditP.Progressprocentage & "% Complete"
Case Is = 5
Prompt = NightAuditP.ShowMsg("All files will now be renamed." & vbNewLine _
& "This process can not be undone!" & vbNewLine & "Do You Wish To Continue?", , Button1Text:="Back", Button2Text:="Next")
NightAuditP.Bar.Width = VBAProject.NightAuditP.Barwidth
NightAuditP.TextP.Caption = VBAProject.NightAuditP.Progressprocentage & "% Complete"
Case Is = 6
Prompt = NightAuditP.ShowMsg("Have you made and saved all the notes on these files? :" & vbNewLine _
& "Credit Card History.pdf" & vbNewLine & "Guest Ledger Detail.pdf" & vbNewLine & "Paid Out.pdf" _
& vbNewLine & "Rate Variance.pdf", , Button1Text:="Back", Button2Text:="Next")
NightAuditP.Bar.Width = VBAProject.NightAuditP.Barwidth
NightAuditP.TextP.Caption = VBAProject.NightAuditP.Progressprocentage & "% Complete"
Case Is = 7
Prompt = NightAuditP.ShowMsg("The process will now create a temperary file." & vbNewLine _
& "This file is used for the final step.", , Button1Text:="Back", Button2Text:="Next")
NightAuditP.Bar.Width = VBAProject.NightAuditP.Barwidth
NightAuditP.TextP.Caption = VBAProject.NightAuditP.Progressprocentage & "% Complete"
Case Is = 8
Prompt = NightAuditP.ShowMsg("The final packet will be created and saved." & vbNewLine _
& "This process can not be undone!" & vbNewLine & "Do You Wish To Continue?", , Button1Text:="Back", Button2Text:="Next")
NightAuditP.Bar.Width = VBAProject.NightAuditP.Barwidth
NightAuditP.TextP.Caption = VBAProject.NightAuditP.Progressprocentage & "% Complete"
End Select
End Sub