Thank you for your kind help. Below is the code I have entered into my program but when I run it it skips page one and prints page two twice and then page three. Can you tell me what I am doing wrong? Also, but of much lesser importance, is it possible to combine these three different print areas into one statement so that you don’t have to click print more than once?
Jack
Sub Print_ScoreCards_14
Dim Document As object
Dim Dispatcher As Object
Document = ThisComponent.CurrentController.Frame
Dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
REM Game 1
Dim Args1(0) as new com.sun.star.beans.PropertyValue
Args1(0).Name = "ToPoint"
Args1(0).Value = "ScoreCards_14.$F$8:$AE$167"
Dispatcher.executeDispatch(Document, ".uno:GoToCell", "", 0, Args1())
Dispatcher.executeDispatch(Document, ".uno:DefinePrintArea", "", 0, Array())
Dispatcher.executeDispatch(Document, ".uno:Print", "", 0, Array())
Wait 500
REM Game 2
Dim Args2(0) as new com.sun.star.beans.PropertyValue
Args2(0).Name = "ToPoint"
Args2(0).Value = "ScoreCards_14.$AG$8:$BF$167"
Dispatcher.executeDispatch(Document, ".uno:GoToCell", "", 0, Args2())
Dispatcher.executeDispatch(Document, ".uno:DefinePrintArea", "", 0, Array())
Dispatcher.executeDispatch(Document, ".uno:PrintDefault", "", 0, Array())
Wait 500
REM Game 3
Dim Args3(0) as new com.sun.star.beans.PropertyValue
Args3(0).Name = "ToPoint"
Args3(0).Value = "ScoreCards_14.$BH$8:$CG$167"
Dispatcher.executeDispatch(Document, ".uno:GoToCell", "", 0, Args3())
Dispatcher.executeDispatch(Document, ".uno:DefinePrintArea", "", 0, Array())
Dispatcher.executeDispatch(Document, ".uno:PrintDefault", "", 0, Array())
Wait 500
REM Return Home
Dim Args4(0) as new com.sun.star.beans.PropertyValue
Args4(0).Name = "ToPoint"
Args4(0).Value = "ScoreCards_14.$A$1"
Dispatcher.executeDispatch(Document, ".uno:GoToCell", "", 0, Args4())
End Sub