Ask Your Question

Revision history [back]

Well, personally I always simply do Shift+ArrowDown->ArrowUp... but possibly this could help:

Sub SelectCurrentCell
  Dim oDoc As Object
  oDoc = ThisComponent
  oDoc.getCurrentController().Select(oDoc.getCurrentSelection)
End Sub

Well, personally I always simply do Shift+ArrowDown->ArrowUp... but possibly this could help:

Sub SelectCurrentCell
  Dim oDoc As Object
  oDoc = ThisComponent
  oDoc.getCurrentController().Select(oDoc.getCurrentSelection)
End Sub

EDIT: sorry - I misread "highlight" as "select". Well - there's a "Background color" button on the "Formatting" toolbar - doesn't it fit your needs?