Hi All,
I am trying to find a way to have a userform appear while the code is running and to set a condition if the code will continue to run, based on selection made in the userform.
Below is the part of the code. What I am trying to achieve is to have a step that will check is the user wants to send an email or not and to have this within the userform with options (yes/no). I have no issue to create the condition part, but i cannot make the form appear. The process should follow steps - Run 1st form, fill data, press command button, code starts and fills data in the sheets, then the next form apears asking if email needs to be send, and if yes, code continues, if no, code stops.
I tried to use userform.show, but it gives me the error file not found?
.....If holiday.value = True Then
Sheet4.Range("m" & Rows.Count).End(xlUp).Offset(1, 0).value = "Yes"
Else
Sheet4.Range("m" & Rows.Count).End(xlUp).Offset(1, 0).value = "No"
End If
Sheet4.Range("s" & Rows.Count).End(xlUp).Offset(1, 0).value = comments.value
This is where i would need the help
Dim xOutApp As Object
Dim xOutMail As Object
Dim xMailBody As String
Dim typesl As String
Dim dayofftype As String .......
PLease help
Regards
Filarap
I am trying to find a way to have a userform appear while the code is running and to set a condition if the code will continue to run, based on selection made in the userform.
Below is the part of the code. What I am trying to achieve is to have a step that will check is the user wants to send an email or not and to have this within the userform with options (yes/no). I have no issue to create the condition part, but i cannot make the form appear. The process should follow steps - Run 1st form, fill data, press command button, code starts and fills data in the sheets, then the next form apears asking if email needs to be send, and if yes, code continues, if no, code stops.
I tried to use userform.show, but it gives me the error file not found?
.....If holiday.value = True Then
Sheet4.Range("m" & Rows.Count).End(xlUp).Offset(1, 0).value = "Yes"
Else
Sheet4.Range("m" & Rows.Count).End(xlUp).Offset(1, 0).value = "No"
End If
Sheet4.Range("s" & Rows.Count).End(xlUp).Offset(1, 0).value = comments.value
This is where i would need the help
Dim xOutApp As Object
Dim xOutMail As Object
Dim xMailBody As String
Dim typesl As String
Dim dayofftype As String .......
PLease help
Regards
Filarap