1 message in org.openoffice.fr.progdéplacement de curseur automatique
FromSent OnAttachments
manu BonteJan 12, 2007 3:24 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:déplacement de curseur automatiqueActions...
From:manu Bonte (flyi@no-log.org)
Date:Jan 12, 2007 3:24:59 am
List:org.openoffice.fr.prog

Bonjour,

je reviens vers vous pour déplacer automatiquement le curseur dans open calc

j'ai une macro qui fonctionne sous excel recopiée ci dessous

est ce que quelqu'un peut me la transformer pour open calc?

Attribute VBA_ModuleType=VBAModule Sub VBA_Modul

Sub Auto_Open()

Worksheets("28").OnEntry = "Form1_Eingabe_Test" End Sub

Function Diff(IstWert, SollWert) If (IstWert = 0) Or (SollWert = 0) Then Diff = "-.-" Else If (IstWert - SollWert) > 0 Then Diff = "+" + CStr(IstWert - SollWert) Else Diff = CStr(IstWert - SollWert) End If End If End Function

Sub Form1_Eingabe_Test()

If ActiveCell.Column = 3 Then If ActiveCell.Row = 17 Then ActiveCell.Offset(-10, 4).Activate End If End If If ActiveCell.Column = 7 Then If ActiveCell.Row = 17 Then ActiveCell.Offset(-10, 4).Activate End If End If

If ActiveCell.Column = 11 Then If ActiveCell.Row = 17 Then ActiveCell.Offset(-10, 4).Activate End If End If

If ActiveCell.Column = 15 Then If ActiveCell.Row = 14 Then ActiveCell.Offset(-7, 4).Activate End If End If

If ActiveCell.Column = 19 Then If ActiveCell.Row = 10 Then ActiveCell.Offset(-3, 4).Activate End If End If

If ActiveCell.Column = 23 Then If ActiveCell.Row = 24 Then ActiveCell.Offset(-0, 0).Activate End If End If End Sub End Sub