Hello,
I have a macro from Excel that offsets to another cell after two inputs but in libreoffice this will select the cell and stop working moving on. Is there any way of having this macro fixed?
Dim mRg As Range
Dim mStr As String
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Range(“E3:R11234”), Target) Is Nothing Then
Set mRg = Target.Item(1)
mStr = mRg.Value
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
Dim xRg As Range
On Error Resume Next
Set xRg = Intersect(Range(“A1:R11234”), Target)
If xRg Is Nothing Then Exit Sub
If Target.Row Mod 2 = 0 Then Target.Offset(-1, 1).Select
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Range(“A1:R11234”), Target) Is Nothing Then
Set mRg = Target.Item(1)
mStr = mRg.Value
End If
End Sub