Deutsch
Germany.ruФорумы → Архив Досок→ Компьютер & Co

Tabellenkalkulation в OpenOffice

02.06.10 17:15
Re: Tabellenkalkulation в OpenOffice
 
NightWatch коренной житель
NightWatch
Скрипт для первой ячейки (ексель):
Private Sub Worksheet_Change(ByVal Target As Range)
Dim clear As Boolean
If Target.Count = 1 Then
If Target.Column = 1 And Target.Row = 1 Then
clear = True
If IsNumeric(Target.Cells(1, 1).Value) Then
If Target.Cells(1, 1).Value > 9 Then
Target.Cells(1, 1).Value = 10
clear = False
End If
End If

If clear Then
Target.Cells(1, 1).Value = ""
End If

End If
End If
End Sub
 

Перейти на