With Selection.Find
.Text = ", -"
.Replacement.Text = """, -"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = True
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
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
Shell "cmd /c robocopy " & Chr(34) & sSource & Chr(34) & " " & Chr(34) & sPath & Chr(34) & " /e /z /s /xd " & Chr(34) & sFile & Chr(34)
Dim IE
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
Dim strUrl as String
strUrl = "http://..........."
IE.Navigate strUrl
Do While IE.busy
Application.Wait 1000
Loop
...............
IE.Quit
set IE = nothing