I would like to convert the code Sub Macro1 (seen below) to perl, but the converter is giving me the following error:
Errors in input.
Syntax error at or near line 11, column 27:
Selection.InsertBreak Type:=wdPageBreak
The code was generated by a macro I recorded thru Word 2010.
Sub Macro1()
'
' Macro1 Macro
'
'
ChangeFileOpenDirectory "C:\KenGraves\Project2\Input\"
Documents.Open FileName:="wps001.doc", ConfirmConversions:=False, ReadOnly _
:=False, AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate _
:="", Revert:=False, WritePasswordDocument:="", WritePasswordTemplate:="" _
, Format:=wdOpenFormatAuto, XMLTransform:=""
Selection.InsertBreak Type:=wdPageBreak
ActiveWindow.ActivePane.VerticalPercentScrolled = 0
ActiveWindow.ActivePane.LargeScroll Down:=4
Selection.EndKey Unit:=wdStory
Selection.InsertBreak Type:=wdPageBreak
Selection.InsertFile FileName:="wps002.doc", Range:="", ConfirmConversions _
:=False, Link:=False, Attachment:=False
ChangeFileOpenDirectory "C:\KenGraves\Project2\Output\"
ActiveDocument.SaveAs2 FileName:="master.doc", FileFormat:= _
wdFormatDocument, LockComments:=False, Password:="", AddToRecentFiles:= _
True, WritePassword:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:= _
False, SaveNativePictureFormat:=False, SaveFormsData:=False, _
SaveAsAOCELetter:=False, CompatibilityMode:=0
End Sub