I would like to know if it is possible to do this without taking my hands from the keyboard.
Regards
Nikos
| Edit: Changed subject, was Shortcut for "fill down" Make your post understandable by others -- MrProgrammer, forum moderator |
| Edit: Changed subject, was Shortcut for "fill down" Make your post understandable by others -- MrProgrammer, forum moderator |
Code: Select all
sub Test_Fill_down
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 = "Sel"
args1(0).Value = true
dispatcher.executeDispatch(document, ".uno:GoToEndOfData", "", 0, args1())
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:FillDown", "", 0, Array())
end subCode: Select all
dispatcher.executeDispatch(document, ".uno:GoToEndOfData", "", 0, args1())| Edit: 2025-03-10: Broken link, now SPAM -- MrProgrammer, forum moderator |
Thank you - Exactly what this first day user was looking for.