Sie sind auf Seite 1von 18

sub Compu

rem ----------------------------------------------------------------------
rem define variables
dim document as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
rem ----------------------------------------------------------------------
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "ToPoint"
args1(0).Value = "$O$8"
dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args1())
rem ----------------------------------------------------------------------
dim args2(0) as new com.sun.star.beans.PropertyValue
args2(0).Name = "Sel"
args2(0).Value = false
dispatcher.executeDispatch(document, ".uno:GoToStart", "", 0, args2())
rem ----------------------------------------------------------------------
dim args3(0) as new com.sun.star.beans.PropertyValue
args3(0).Name = "Sel"
args3(0).Value = false
dispatcher.executeDispatch(document, ".uno:GoToEndOfData", "", 0, args3())
rem ----------------------------------------------------------------------
dim args4(1) as new com.sun.star.beans.PropertyValue
args4(0).Name = "By"
args4(0).Value = 1
args4(1).Name = "Sel"
args4(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args4())
rem ----------------------------------------------------------------------
dim args5(1) as new com.sun.star.beans.PropertyValue
args5(0).Name = "By"
args5(0).Value = 1
args5(1).Name = "Sel"
args5(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoUpToStartOfData", "", 0, args5())
rem ----------------------------------------------------------------------
dim args6(0) as new com.sun.star.beans.PropertyValue
args6(0).Name = "StringName"
args6(0).Value = "Meta titulo"
dispatcher.executeDispatch(document, ".uno:EnterString", "", 0, args6())
rem ----------------------------------------------------------------------
dim args7(1) as new com.sun.star.beans.PropertyValue
args7(0).Name = "By"
args7(0).Value = 1
args7(1).Name = "Sel"
args7(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args7())
rem ----------------------------------------------------------------------
dim args8(0) as new com.sun.star.beans.PropertyValue
args8(0).Name = "StringName"
args8(0).Value = "Meta descripcion"
dispatcher.executeDispatch(document, ".uno:EnterString", "", 0, args8())
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:JumpToNextCell", "", 0, Array())
rem ----------------------------------------------------------------------
dim args10(1) as new com.sun.star.beans.PropertyValue
args10(0).Name = "By"
args10(0).Value = 1
args10(1).Name = "Sel"
args10(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoDown", "", 0, args10())
rem ----------------------------------------------------------------------
dim args11(0) as new com.sun.star.beans.PropertyValue
args11(0).Name = "StringName"
args11(0).Value = "=CONCATENAR("+CHR$(34)+"COMPRAR BARATO "+CHR$(34)+";IZQUIERDA
(b3;145))"
dispatcher.executeDispatch(document, ".uno:EnterString", "", 0, args11())
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:JumpToNextCell", "", 0, Array())
rem ----------------------------------------------------------------------
dim args13(1) as new com.sun.star.beans.PropertyValue
args13(0).Name = "By"
args13(0).Value = 1
args13(1).Name = "Sel"
args13(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoUp", "", 0, args13())
rem ----------------------------------------------------------------------
dim args14(1) as new com.sun.star.beans.PropertyValue
args14(0).Name = "By"
args14(0).Value = 1
args14(1).Name = "Sel"
args14(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoLeft", "", 0, args14())
rem ----------------------------------------------------------------------
dim args15(0) as new com.sun.star.beans.PropertyValue
args15(0).Name = "StringName"
args15(0).Value = "=IZQUIERDA(b3;70)"
dispatcher.executeDispatch(document, ".uno:EnterString", "", 0, args15())
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:JumpToNextCell", "", 0, Array())
rem ----------------------------------------------------------------------
dim args17(1) as new com.sun.star.beans.PropertyValue
args17(0).Name = "By"
args17(0).Value = 1
args17(1).Name = "Sel"
args17(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoUp", "", 0, args17())
rem ----------------------------------------------------------------------
dim args18(0) as new com.sun.star.beans.PropertyValue
args18(0).Name = "By"
args18(0).Value = 1
dispatcher.executeDispatch(document, ".uno:GoRightSel", "", 0, args18())
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:Copy", "", 0, Array())
rem ----------------------------------------------------------------------
dim args20(0) as new com.sun.star.beans.PropertyValue
args20(0).Name = "Sel"
args20(0).Value = true
dispatcher.executeDispatch(document, ".uno:GoToEndOfData", "", 0, args20())
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:Paste", "", 0, Array())
rem ----------------------------------------------------------------------
dim args22(0) as new com.sun.star.beans.PropertyValue
args22(0).Name = "Sel"
args22(0).Value = false
dispatcher.executeDispatch(document, ".uno:GoToStart", "", 0, args22())
rem ----------------------------------------------------------------------
dim args23(1) as new com.sun.star.beans.PropertyValue
args23(0).Name = "By"
args23(0).Value = 1
args23(1).Name = "Sel"
args23(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args23())
rem ----------------------------------------------------------------------
dim args24(1) as new com.sun.star.beans.PropertyValue
args24(0).Name = "By"
args24(0).Value = 1
args24(1).Name = "Sel"
args24(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args24())
rem ----------------------------------------------------------------------
dim args25(1) as new com.sun.star.beans.PropertyValue
args25(0).Name = "By"
args25(0).Value = 1
args25(1).Name = "Sel"
args25(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args25())
rem ----------------------------------------------------------------------
dim args26(1) as new com.sun.star.beans.PropertyValue
args26(0).Name = "By"
args26(0).Value = 1
args26(1).Name = "Sel"
args26(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args26())
rem ----------------------------------------------------------------------
dim args27(1) as new com.sun.star.beans.PropertyValue
args27(0).Name = "By"
args27(0).Value = 1
args27(1).Name = "Sel"
args27(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args27())
rem ----------------------------------------------------------------------
dim args28(1) as new com.sun.star.beans.PropertyValue
args28(0).Name = "By"
args28(0).Value = 1
args28(1).Name = "Sel"
args28(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args28())
rem ----------------------------------------------------------------------
dim args29(1) as new com.sun.star.beans.PropertyValue
args29(0).Name = "By"
args29(0).Value = 1
args29(1).Name = "Sel"
args29(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args29())
rem ----------------------------------------------------------------------
dim args30(1) as new com.sun.star.beans.PropertyValue
args30(0).Name = "By"
args30(0).Value = 1
args30(1).Name = "Sel"
args30(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args30())
rem ----------------------------------------------------------------------
dim args31(1) as new com.sun.star.beans.PropertyValue
args31(0).Name = "By"
args31(0).Value = 1
args31(1).Name = "Sel"
args31(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args31())
rem ----------------------------------------------------------------------
dim args32(1) as new com.sun.star.beans.PropertyValue
args32(0).Name = "By"
args32(0).Value = 1
args32(1).Name = "Sel"
args32(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args32())
rem ----------------------------------------------------------------------
dim args33(1) as new com.sun.star.beans.PropertyValue
args33(0).Name = "By"
args33(0).Value = 1
args33(1).Name = "Sel"
args33(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args33())
rem ----------------------------------------------------------------------
dim args34(1) as new com.sun.star.beans.PropertyValue
args34(0).Name = "By"
args34(0).Value = 1
args34(1).Name = "Sel"
args34(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args34())
rem ----------------------------------------------------------------------
dim args35(1) as new com.sun.star.beans.PropertyValue
args35(0).Name = "By"
args35(0).Value = 1
args35(1).Name = "Sel"
args35(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args35())
rem ----------------------------------------------------------------------
dim args36(1) as new com.sun.star.beans.PropertyValue
args36(0).Name = "By"
args36(0).Value = 1
args36(1).Name = "Sel"
args36(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args36())
rem ----------------------------------------------------------------------
dim args37(1) as new com.sun.star.beans.PropertyValue
args37(0).Name = "By"
args37(0).Value = 1
args37(1).Name = "Sel"
args37(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoDown", "", 0, args37())
rem ----------------------------------------------------------------------
dim args38(1) as new com.sun.star.beans.PropertyValue
args38(0).Name = "By"
args38(0).Value = 1
args38(1).Name = "Sel"
args38(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoDown", "", 0, args38())
rem ----------------------------------------------------------------------
dim args39(0) as new com.sun.star.beans.PropertyValue
args39(0).Name = "StringName"
args39(0).Value = "=g3&"+CHR$(34)+"/"+CHR$(34)+"&h3"
dispatcher.executeDispatch(document, ".uno:EnterString", "", 0, args39())
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:JumpToNextCell", "", 0, Array())
rem ----------------------------------------------------------------------
dim args41(1) as new com.sun.star.beans.PropertyValue
args41(0).Name = "By"
args41(0).Value = 1
args41(1).Name = "Sel"
args41(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoUp", "", 0, args41())
rem ----------------------------------------------------------------------
dim args42(1) as new com.sun.star.beans.PropertyValue
args42(0).Name = "By"
args42(0).Value = 1
args42(1).Name = "Sel"
args42(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args42())
rem ----------------------------------------------------------------------
dim args43(0) as new com.sun.star.beans.PropertyValue
args43(0).Name = "StringName"
args43(0).Value = "Compuspain"
dispatcher.executeDispatch(document, ".uno:EnterString", "", 0, args43())
rem ----------------------------------------------------------------------
dim args44(1) as new com.sun.star.beans.PropertyValue
args44(0).Name = "By"
args44(0).Value = 1
args44(1).Name = "Sel"
args44(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args44())
rem ----------------------------------------------------------------------
dim args45(1) as new com.sun.star.beans.PropertyValue
args45(0).Name = "By"
args45(0).Value = 1
args45(1).Name = "Sel"
args45(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args45())
rem ----------------------------------------------------------------------
dim args46(1) as new com.sun.star.beans.PropertyValue
args46(0).Name = "By"
args46(0).Value = 1
args46(1).Name = "Sel"
args46(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoLeft", "", 0, args46())
rem ----------------------------------------------------------------------
dim args47(0) as new com.sun.star.beans.PropertyValue
args47(0).Name = "StringName"
args47(0).Value = "=c3*1,10*1,21"
dispatcher.executeDispatch(document, ".uno:EnterString", "", 0, args47())
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:JumpToNextCell", "", 0, Array())
rem ----------------------------------------------------------------------
dim args49(1) as new com.sun.star.beans.PropertyValue
args49(0).Name = "By"
args49(0).Value = 1
args49(1).Name = "Sel"
args49(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoUp", "", 0, args49())
rem ----------------------------------------------------------------------
dim args50(1) as new com.sun.star.beans.PropertyValue
args50(0).Name = "By"
args50(0).Value = 1
args50(1).Name = "Sel"
args50(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args50())
rem ----------------------------------------------------------------------
dim args51(0) as new com.sun.star.beans.PropertyValue
args51(0).Name = "StringName"
args51(0).Value = "=SERVICIOWEB(u3)"
dispatcher.executeDispatch(document, ".uno:EnterString", "", 0, args51())
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:JumpToNextCell", "", 0, Array())
rem ----------------------------------------------------------------------
dim args53(1) as new com.sun.star.beans.PropertyValue
args53(0).Name = "By"
args53(0).Value = 1
args53(1).Name = "Sel"
args53(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoUp", "", 0, args53())
rem ----------------------------------------------------------------------
dim args54(1) as new com.sun.star.beans.PropertyValue
args54(0).Name = "By"
args54(0).Value = 1
args54(1).Name = "Sel"
args54(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoLeft", "", 0, args54())
rem ----------------------------------------------------------------------
dim args55(1) as new com.sun.star.beans.PropertyValue
args55(0).Name = "By"
args55(0).Value = 1
args55(1).Name = "Sel"
args55(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoLeft", "", 0, args55())
rem ----------------------------------------------------------------------
dim args56(1) as new com.sun.star.beans.PropertyValue
args56(0).Name = "By"
args56(0).Value = 1
args56(1).Name = "Sel"
args56(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoLeft", "", 0, args56())
rem ----------------------------------------------------------------------
dim args57(0) as new com.sun.star.beans.PropertyValue
args57(0).Name = "By"
args57(0).Value = 1
dispatcher.executeDispatch(document, ".uno:GoRightSel", "", 0, args57())
rem ----------------------------------------------------------------------
dim args58(0) as new com.sun.star.beans.PropertyValue
args58(0).Name = "By"
args58(0).Value = 1
dispatcher.executeDispatch(document, ".uno:GoRightSel", "", 0, args58())
rem ----------------------------------------------------------------------
dim args59(0) as new com.sun.star.beans.PropertyValue
args59(0).Name = "By"
args59(0).Value = 1
dispatcher.executeDispatch(document, ".uno:GoRightSel", "", 0, args59())
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:Copy", "", 0, Array())
rem ----------------------------------------------------------------------
dim args61(0) as new com.sun.star.beans.PropertyValue
args61(0).Name = "Sel"
args61(0).Value = true
dispatcher.executeDispatch(document, ".uno:GoToEndOfData", "", 0, args61())
rem ----------------------------------------------------------------------
dim args62(0) as new com.sun.star.beans.PropertyValue
args62(0).Name = "By"
args62(0).Value = 1
dispatcher.executeDispatch(document, ".uno:GoLeftToStartOfDataSel", "", 0, args6
2())
rem ----------------------------------------------------------------------
dim args63(0) as new com.sun.star.beans.PropertyValue
args63(0).Name = "By"
args63(0).Value = 1
dispatcher.executeDispatch(document, ".uno:GoLeftToStartOfDataSel", "", 0, args6
3())
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:Paste", "", 0, Array())
rem ----------------------------------------------------------------------
dim args64(0) as new com.sun.star.beans.PropertyValue
args64(0).Name = "ToPoint"
args64(0).Value = "$U$5"
dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args64())
rem ----------------------------------------------------------------------
dim args65(0) as new com.sun.star.beans.PropertyValue
args65(0).Name = "Sel"
args65(0).Value = false
dispatcher.executeDispatch(document, ".uno:GoToStart", "", 0, args65())
rem ----------------------------------------------------------------------
dim args66(0) as new com.sun.star.beans.PropertyValue
args66(0).Name = "Sel"
args66(0).Value = false
dispatcher.executeDispatch(document, ".uno:GoToEndOfData", "", 0, args66())
rem ----------------------------------------------------------------------
dim args67(1) as new com.sun.star.beans.PropertyValue
args67(0).Name = "By"
args67(0).Value = 1
args67(1).Name = "Sel"
args67(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoUpToStartOfData", "", 0, args67())
rem ----------------------------------------------------------------------
dim args68(1) as new com.sun.star.beans.PropertyValue
args68(0).Name = "By"
args68(0).Value = 1
args68(1).Name = "Sel"
args68(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoUp", "", 0, args68())
rem ----------------------------------------------------------------------
dim args69(1) as new com.sun.star.beans.PropertyValue
args69(0).Name = "By"
args69(0).Value = 1
args69(1).Name = "Sel"
args69(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoUp", "", 0, args69())
rem ----------------------------------------------------------------------
dim args70(1) as new com.sun.star.beans.PropertyValue
args70(0).Name = "By"
args70(0).Value = 1
args70(1).Name = "Sel"
args70(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args70())
rem ----------------------------------------------------------------------
dim args71(0) as new com.sun.star.beans.PropertyValue
args71(0).Name = "StringName"
args71(0).Value = "Borrar imagen"
dispatcher.executeDispatch(document, ".uno:EnterString", "", 0, args71())
rem ----------------------------------------------------------------------
dim args72(1) as new com.sun.star.beans.PropertyValue
args72(0).Name = "By"
args72(0).Value = 1
args72(1).Name = "Sel"
args72(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoDown", "", 0, args72())
rem ----------------------------------------------------------------------
dim args73(1) as new com.sun.star.beans.PropertyValue
args73(0).Name = "By"
args73(0).Value = 1
args73(1).Name = "Sel"
args73(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoDown", "", 0, args73())
rem ----------------------------------------------------------------------
dim args74(0) as new com.sun.star.beans.PropertyValue
args74(0).Name = "StringName"
args74(0).Value = "1"
dispatcher.executeDispatch(document, ".uno:EnterString", "", 0, args74())
rem ----------------------------------------------------------------------
dim args75(1) as new com.sun.star.beans.PropertyValue
args75(0).Name = "By"
args75(0).Value = 1
args75(1).Name = "Sel"
args75(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoDown", "", 0, args75())
rem ----------------------------------------------------------------------
dim args76(1) as new com.sun.star.beans.PropertyValue
args76(0).Name = "By"
args76(0).Value = 1
args76(1).Name = "Sel"
args76(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoUp", "", 0, args76())
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:Copy", "", 0, Array())
rem ----------------------------------------------------------------------
dim args77(0) as new com.sun.star.beans.PropertyValue
args77(0).Name = "Sel"
args77(0).Value = true
dispatcher.executeDispatch(document, ".uno:GoToEndOfData", "", 0, args77())
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:Paste", "", 0, Array())
rem ----------------------------------------------------------------------
dim args78(2) as new com.sun.star.beans.PropertyValue
args78(0).Name = "Underline.LineStyle"
args78(0).Value = 1
args78(1).Name = "Underline.HasColor"
args78(1).Value = false
args78(2).Name = "Underline.Color"
args78(2).Value = -1
dispatcher.executeDispatch(document, ".uno:Underline", "", 0, args78())
rem ----------------------------------------------------------------------
dim args79(0) as new com.sun.star.beans.PropertyValue
args79(0).Name = "ToPoint"
args79(0).Value = "$C$5"
dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args79())
rem ----------------------------------------------------------------------
dim args80(0) as new com.sun.star.beans.PropertyValue
args80(0).Name = "Sel"
args80(0).Value = false
dispatcher.executeDispatch(document, ".uno:GoToStart", "", 0, args80())
rem ----------------------------------------------------------------------
dim args81(19) as new com.sun.star.beans.PropertyValue
args81(0).Name = "SearchItem.StyleFamily"
args81(0).Value = 2
args81(1).Name = "SearchItem.CellType"
args81(1).Value = 0
args81(2).Name = "SearchItem.RowDirection"
args81(2).Value = true
args81(3).Name = "SearchItem.AllTables"
args81(3).Value = false
args81(4).Name = "SearchItem.SearchFiltered"
args81(4).Value = false
args81(5).Name = "SearchItem.Backward"
args81(5).Value = false
args81(6).Name = "SearchItem.Pattern"
args81(6).Value = false
args81(7).Name = "SearchItem.Content"
args81(7).Value = false
args81(8).Name = "SearchItem.AsianOptions"
args81(8).Value = false
args81(9).Name = "SearchItem.AlgorithmType"
args81(9).Value = 0
args81(10).Name = "SearchItem.SearchFlags"
args81(10).Value = 0
args81(11).Name = "SearchItem.SearchString"
args81(11).Value = ">>"
args81(12).Name = "SearchItem.ReplaceString"
args81(12).Value = " "
args81(13).Name = "SearchItem.Locale"
args81(13).Value = 255
args81(14).Name = "SearchItem.ChangedChars"
args81(14).Value = 2
args81(15).Name = "SearchItem.DeletedChars"
args81(15).Value = 2
args81(16).Name = "SearchItem.InsertedChars"
args81(16).Value = 2
args81(17).Name = "SearchItem.TransliterateFlags"
args81(17).Value = 256
args81(18).Name = "SearchItem.Command"
args81(18).Value = 3
args81(19).Name = "SearchItem.SearchFormatted"
args81(19).Value = false
dispatcher.executeDispatch(document, ".uno:ExecuteSearch", "", 0, args81())
rem ----------------------------------------------------------------------
dim args82(0) as new com.sun.star.beans.PropertyValue
args82(0).Name = "Visible"
args82(0).Value = false
dispatcher.executeDispatch(document, ".uno:SearchResultsDialog", "", 0, args82()
)
rem ----------------------------------------------------------------------
dim args83(19) as new com.sun.star.beans.PropertyValue
args83(0).Name = "SearchItem.StyleFamily"
args83(0).Value = 2
args83(1).Name = "SearchItem.CellType"
args83(1).Value = 0
args83(2).Name = "SearchItem.RowDirection"
args83(2).Value = true
args83(3).Name = "SearchItem.AllTables"
args83(3).Value = false
args83(4).Name = "SearchItem.SearchFiltered"
args83(4).Value = false
args83(5).Name = "SearchItem.Backward"
args83(5).Value = false
args83(6).Name = "SearchItem.Pattern"
args83(6).Value = false
args83(7).Name = "SearchItem.Content"
args83(7).Value = false
args83(8).Name = "SearchItem.AsianOptions"
args83(8).Value = false
args83(9).Name = "SearchItem.AlgorithmType"
args83(9).Value = 0
args83(10).Name = "SearchItem.SearchFlags"
args83(10).Value = 0
args83(11).Name = "SearchItem.SearchString"
args83(11).Value = ">>"
args83(12).Name = "SearchItem.ReplaceString"
args83(12).Value = " "
args83(13).Name = "SearchItem.Locale"
args83(13).Value = 255
args83(14).Name = "SearchItem.ChangedChars"
args83(14).Value = 2
args83(15).Name = "SearchItem.DeletedChars"
args83(15).Value = 2
args83(16).Name = "SearchItem.InsertedChars"
args83(16).Value = 2
args83(17).Name = "SearchItem.TransliterateFlags"
args83(17).Value = 256
args83(18).Name = "SearchItem.Command"
args83(18).Value = 2
args83(19).Name = "SearchItem.SearchFormatted"
args83(19).Value = false
dispatcher.executeDispatch(document, ".uno:ExecuteSearch", "", 0, args83())
rem ----------------------------------------------------------------------
dim args84(19) as new com.sun.star.beans.PropertyValue
args84(0).Name = "SearchItem.StyleFamily"
args84(0).Value = 2
args84(1).Name = "SearchItem.CellType"
args84(1).Value = 0
args84(2).Name = "SearchItem.RowDirection"
args84(2).Value = true
args84(3).Name = "SearchItem.AllTables"
args84(3).Value = false
args84(4).Name = "SearchItem.SearchFiltered"
args84(4).Value = false
args84(5).Name = "SearchItem.Backward"
args84(5).Value = false
args84(6).Name = "SearchItem.Pattern"
args84(6).Value = false
args84(7).Name = "SearchItem.Content"
args84(7).Value = false
args84(8).Name = "SearchItem.AsianOptions"
args84(8).Value = false
args84(9).Name = "SearchItem.AlgorithmType"
args84(9).Value = 0
args84(10).Name = "SearchItem.SearchFlags"
args84(10).Value = 0
args84(11).Name = "SearchItem.SearchString"
args84(11).Value = ">>"
args84(12).Name = "SearchItem.ReplaceString"
args84(12).Value = " "
args84(13).Name = "SearchItem.Locale"
args84(13).Value = 255
args84(14).Name = "SearchItem.ChangedChars"
args84(14).Value = 2
args84(15).Name = "SearchItem.DeletedChars"
args84(15).Value = 2
args84(16).Name = "SearchItem.InsertedChars"
args84(16).Value = 2
args84(17).Name = "SearchItem.TransliterateFlags"
args84(17).Value = 256
args84(18).Name = "SearchItem.Command"
args84(18).Value = 2
args84(19).Name = "SearchItem.SearchFormatted"
args84(19).Value = false
dispatcher.executeDispatch(document, ".uno:ExecuteSearch", "", 0, args84())
rem ---------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:Save", "", 0, Array())
rem ----------------------------------------------------------------------
dim args85(0) as new com.sun.star.beans.PropertyValue
args85(0).Name = "ToPoint"
args85(0).Value = "$B$6:$B$7"
dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args85())
rem ----------------------------------------------------------------------
dim args86(0) as new com.sun.star.beans.PropertyValue
args86(0).Name = "Sel"
args86(0).Value = false
dispatcher.executeDispatch(document, ".uno:GoToStart", "", 0, args86())
rem ----------------------------------------------------------------------
dim args87(1) as new com.sun.star.beans.PropertyValue
args87(0).Name = "By"
args87(0).Value = 1
args87(1).Name = "Sel"
args87(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args87())
rem ----------------------------------------------------------------------
dim args88(0) as new com.sun.star.beans.PropertyValue
args88(0).Name = "By"
args88(0).Value = 1
dispatcher.executeDispatch(document, ".uno:GoDownSel", "", 0, args88())
rem ----------------------------------------------------------------------
dim args89(0) as new com.sun.star.beans.PropertyValue
args89(0).Name = "By"
args89(0).Value = 1
dispatcher.executeDispatch(document, ".uno:GoDownToEndOfDataSel", "", 0, args89(
))
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:Copy", "", 0, Array())
rem ----------------------------------------------------------------------
dim args90(1) as new com.sun.star.beans.PropertyValue
args90(0).Name = "By"
args90(0).Value = 1
args90(1).Name = "Sel"
args90(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRightToEndOfData", "", 0, args90())
rem ----------------------------------------------------------------------
dim args91(1) as new com.sun.star.beans.PropertyValue
args91(0).Name = "By"
args91(0).Value = 1
args91(1).Name = "Sel"
args91(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args91())
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:Paste", "", 0, Array())
rem ----------------------------------------------------------------------
dim args92(1) as new com.sun.star.beans.PropertyValue
args92(0).Name = "By"
args92(0).Value = 1
args92(1).Name = "Sel"
args92(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoUp", "", 0, args92())
rem ----------------------------------------------------------------------
dim args93(1) as new com.sun.star.beans.PropertyValue
args93(0).Name = "By"
args93(0).Value = 1
args93(1).Name = "Sel"
args93(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoDown", "", 0, args93())
rem ----------------------------------------------------------------------
dim args94(1) as new com.sun.star.beans.PropertyValue
args94(0).Name = "By"
args94(0).Value = 1
args94(1).Name = "Sel"
args94(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoUp", "", 0, args94())
rem ----------------------------------------------------------------------
dim args95(0) as new com.sun.star.beans.PropertyValue
args95(0).Name = "StringName"
args95(0).Value = "Recurso"
dispatcher.executeDispatch(document, ".uno:EnterString", "", 0, args95())
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:JumpToNextCell", "", 0, Array())
rem ----------------------------------------------------------------------
dim args96(2) as new com.sun.star.beans.PropertyValue
args96(0).Name = "Underline.LineStyle"
args96(0).Value = 1
args96(1).Name = "Underline.HasColor"
args96(1).Value = false
args96(2).Name = "Underline.Color"
args96(2).Value = -1
dispatcher.executeDispatch(document, ".uno:Underline", "", 0, args96())
rem ----------------------------------------------------------------------
dim args97(0) as new com.sun.star.beans.PropertyValue
args97(0).Name = "ToPoint"
args97(0).Value = "$B$11"
dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args97())
rem ----------------------------------------------------------------------
rem get access to the document
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
rem ----------------------------------------------------------------------
dim args98(0) as new com.sun.star.beans.PropertyValue
args98(0).Name = "ToPoint"
args98(0).Value = "$H$7"
dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args98())
rem ----------------------------------------------------------------------
dim args99(0) as new com.sun.star.beans.PropertyValue
args99(0).Name = "Sel"
args99(0).Value = false
dispatcher.executeDispatch(document, ".uno:GoToStart", "", 0, args99())
rem ----------------------------------------------------------------------
dim args100(1) as new com.sun.star.beans.PropertyValue
args100(0).Name = "By"
args100(0).Value = 1
args100(1).Name = "Sel"
args100(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args100())
rem ----------------------------------------------------------------------
dim args101(1) as new com.sun.star.beans.PropertyValue
args101(0).Name = "By"
args101(0).Value = 1
args101(1).Name = "Sel"
args101(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args101())
rem ----------------------------------------------------------------------
dim args102(1) as new com.sun.star.beans.PropertyValue
args102(0).Name = "By"
args102(0).Value = 1
args102(1).Name = "Sel"
args102(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args102())
rem ----------------------------------------------------------------------
dim args103(1) as new com.sun.star.beans.PropertyValue
args103(0).Name = "By"
args103(0).Value = 1
args103(1).Name = "Sel"
args103(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args103())
rem ----------------------------------------------------------------------
dim args104(1) as new com.sun.star.beans.PropertyValue
args104(0).Name = "By"
args104(0).Value = 1
args104(1).Name = "Sel"
args104(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args104())
rem ----------------------------------------------------------------------
dim args105(1) as new com.sun.star.beans.PropertyValue
args105(0).Name = "By"
args105(0).Value = 1
args105(1).Name = "Sel"
args105(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args105())
rem ----------------------------------------------------------------------
dim args106(1) as new com.sun.star.beans.PropertyValue
args106(0).Name = "By"
args106(0).Value = 1
args106(1).Name = "Sel"
args106(1).Value = false
dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args106())
rem ----------------------------------------------------------------------
dim args107(0) as new com.sun.star.beans.PropertyValue
args107(0).Name = "By"
args107(0).Value = 1
dispatcher.executeDispatch(document, ".uno:GoDownToEndOfDataSel", "", 0, args107
())
rem ----------------------------------------------------------------------
dim args108(19) as new com.sun.star.beans.PropertyValue
args108(0).Name = "SearchItem.StyleFamily"
args108(0).Value = 2
args108(1).Name = "SearchItem.CellType"
args108(1).Value = 0
args108(2).Name = "SearchItem.RowDirection"
args108(2).Value = true
args108(3).Name = "SearchItem.AllTables"
args108(3).Value = false
args108(4).Name = "SearchItem.SearchFiltered"
args108(4).Value = false
args108(5).Name = "SearchItem.Backward"
args108(5).Value = false
args108(6).Name = "SearchItem.Pattern"
args108(6).Value = false
args108(7).Name = "SearchItem.Content"
args108(7).Value = false
args108(8).Name = "SearchItem.AsianOptions"
args108(8).Value = false
args108(9).Name = "SearchItem.AlgorithmType"
args108(9).Value = 0
args108(10).Name = "SearchItem.SearchFlags"
args108(10).Value = 71680
args108(11).Name = "SearchItem.SearchString"
args108(11).Value = "/"
args108(12).Name = "SearchItem.ReplaceString"
args108(12).Value = "-"
args108(13).Name = "SearchItem.Locale"
args108(13).Value = 255
args108(14).Name = "SearchItem.ChangedChars"
args108(14).Value = 2
args108(15).Name = "SearchItem.DeletedChars"
args108(15).Value = 2
args108(16).Name = "SearchItem.InsertedChars"
args108(16).Value = 2
args108(17).Name = "SearchItem.TransliterateFlags"
args108(17).Value = 1280
args108(18).Name = "SearchItem.Command"
args108(18).Value = 3
args108(19).Name = "SearchItem.SearchFormatted"
args108(19).Value = false
dispatcher.executeDispatch(document, ".uno:ExecuteSearch", "", 0, args108())
rem ----------------------------------------------------------------------
dim args109(0) as new com.sun.star.beans.PropertyValue
args109(0).Name = "Visible"
args109(0).Value = false
dispatcher.executeDispatch(document, ".uno:SearchResultsDialog", "", 0, args109(
))
end sub

Das könnte Ihnen auch gefallen