Although it's not possible to record a macro it is possible to write a macro to switch between documents.
Following macro can be assigned to a hotkey and switches to the next document of the same type. Example if you are editing a Calc spreadsheet it will only switch to other Calc spreadsheets. Same for Writer documents.
It might still need some work, but if you have problems post back with a comment and I'll try and fix.
Option Explicit
Sub SwitchFrame
Dim oComponents As Object
Dim x As Object
Dim iCount As Integer
Dim i As Integer
Dim n As Integer
Dim sThis As String
Dim sDocs() As String
Dim sID As String
sThis = thisComponent.Title
sID = thisComponent.Identifier
oComponents = StarDesktop.Components.createEnumeration
iCount = 0
Do While oComponents.hasMoreElements()
x = oComponents.NextElement()
' Switch only to documents of the same type
If x.Identifier = sID Then
If InStr(x.DBG_properties, "Title") > 0 Then
iCount = iCount + 1
ReDim Preserve sDocs(1 to iCount) As String
sDocs(iCount) = x.Title
End If
End If
Loop
If iCount > 1 Then
For i = 1 To iCount
If sDocs(i) = sThis Then Exit For
Next i
i = i + 1
If i > iCount Then i = 1
oComponents = StarDesktop.Components.createEnumeration
Do While oComponents.hasMoreElements()
x = oComponents.NextElement()
If sDocs(i) = x.Title Then Exit Do
Loop
stardesktop.loadComponentFromURL(x.URL,"_default",0,array()) ' sets focus to the document
End If
End Sub
Why do you ask why something is not possible? Wouldn't you like to know how it is possible? :)