Private
Sub
ComboBox1_Change()
Sheets(
"Hilfstabelle"
).Range(
"B1"
).Value = ComboBox1.Value
End
Sub
Private
Sub
ComboBox1_KeyDown(
ByVal
KeyCode
As
MSForms.ReturnInteger,
ByVal
Shift
As
Integer
)
If
KeyCode = 9
Then
ComboBox2.Activate
ComboBox2.SelStart = 0
ComboBox2.SelLength = Len(ComboBox2.Text)
DoEvents
End
Sub
Private
Sub
ComboBox2_KeyPress(
ByVal
KeyAscii
As
MSForms.ReturnInteger)
If
InStr(ComboBox2.Text,
"."
)
Then
ComboBox2.Text = Replace(ComboBox2.Text,
"."
,
","
)
End
If
End
Sub
Private
Sub
ComboBox2_Change()
With
ComboBox2
If
.ListIndex > -1
Then
Sheets(
"Hilfstabelle"
).Range(
"B2"
).Value = ComboBox2.Value
If
Sheets(
"Hilfstabelle"
).Range(
"B2"
).Value =
"Bitte auswählen"
Then
Sheets(
"Hilfstabelle"
).Range(
"B2"
).Value = 0
Else
Sheets(
"Hilfstabelle"
).Range(
"B2"
) = Sheets(
"Hilfstabelle"
).Range(
"B2"
) * 1
End
If
End
If
End
With
End
Sub