Hi all
I have searched the internet on this problem but so far I have not found the answer that suits my needs. I want to create a macro with a message box that prompts the user to select a range on the worksheet to print after the user selects all of his printing options. Below is my unfinished code
Sub PrintsSelection()
Msg = "Do you want to print worksheet?"
Config = vbYesNo
Ans = MsgBox(Msg, Config)
If Ans = vbYes Then
MsgBox "Please select your printing options and the area to print" 'Here is where I get lost. I want the macro to pause so that the user can select a range
'and printing options. Once the user does that, I want the macro to resume and print the worksheet plus do other tasks.
If Ans = vbNo Then
Exit Sub
End If
End If
End Sub
I have searched the internet on this problem but so far I have not found the answer that suits my needs. I want to create a macro with a message box that prompts the user to select a range on the worksheet to print after the user selects all of his printing options. Below is my unfinished code
Sub PrintsSelection()
Msg = "Do you want to print worksheet?"
Config = vbYesNo
Ans = MsgBox(Msg, Config)
If Ans = vbYes Then
MsgBox "Please select your printing options and the area to print" 'Here is where I get lost. I want the macro to pause so that the user can select a range
'and printing options. Once the user does that, I want the macro to resume and print the worksheet plus do other tasks.
If Ans = vbNo Then
Exit Sub
End If
End If
End Sub