Hi @LeroyG, with the cursor at B1, activate the macro…
Sub Preencher
dim doc, disp as object
doc = ThisComponent.CurrentController.Frame
disp = createUnoService("com.sun.star.frame.DispatchHelper")
disp.executeDispatch(doc, ".uno:GoRight", "", 0, Array())
disp.executeDispatch(doc, ".uno:GoDownToEndOfData", "", 0, Array())
disp.executeDispatch(doc, ".uno:GoLeft", "", 0, Array())
disp.executeDispatch(doc, ".uno:GoUpToStartOfDataSel", "", 0, Array())
disp.executeDispatch(doc, ".uno:FillDown", "", 0, Array())
disp.executeDispatch(doc, ".uno:GoUp", "", 0, Array())
disp.executeDispatch(doc, ".uno:GoUpToStartOfData", "", 0, Array())
End Sub 'Preencher