I'm new with OO Calc macros. With this code I can style cells on F13:F16 range
REM ***** BASIC *****
Option Explicit
Sub Main
oDoc = ThisComponent
osheets = odoc.getSheets()
osheet = osheets.getByIndex(0)
oCells = oSheet.getCellRangeByName("F13:F16")
NewBorder = oCells.BottomBorder
NewBorder.OuterLineWidth = 3
oCells.BottomBorder = NewBorder
End Sub
How can I edit this code so I can style cells I currently selected with mouse, instead of specifying them in the code?