Sub PrintSelectedPages()
Dim strPages As String
strPages = strPages & IIf(CheckBox1.Value, IIf(strPages = "", "", ",") & "2", "")
strPages = strPages & IIf(CheckBox2.Value, IIf(strPages = "", "", ",") & "3", "")
If Not strPages = "" Then Application.PrintOut Range:=wdPrintRangeOfPages, Pages:=strPages
End Sub