Option
Explicit
Dim
DT
As
New
Datentransfer
Private
Sub
UserForm_Initialize()
With
DT
Set
.UF =
Me
.ZellenEinlesen Range(
"E28:G31"
)
.ControlType =
"TextBox"
.ControlsEinlesen
"2-11"
.Import
End
With
End
Sub
Private
Sub
UserForm_Activate()
With
TextBox2
.SetFocus
.SelStart = 0
.SelLength = Len(.Text)
End
With
Me
.TextBox1.Value = ActiveSheet.Range(
"B36"
).Text
End
Sub
Private
Sub
CommandButton1_Click()
With
DT
.ControlsEinlesen
"2-13"
If
.Überprüfen
Then
.ControlsEinlesen
"2-12"
.Export
End
If
End
With
End
Sub
Private
Sub
CommandButton1_MouseMove(
ByVal
Button
As
Integer
,
ByVal
Shift
As
Integer
,
ByVal
x
As
Single
,
ByVal
Y
As
Single
)
CommandButton1.SetFocus
End
Sub
Private
Sub
CommandButton2_Click()
UF_Tabelle_01.Hide
End
Sub
Private
Sub
CommandButton2_MouseMove(
ByVal
Button
As
Integer
,
ByVal
Shift
As
Integer
,
ByVal
x
As
Single
,
ByVal
Y
As
Single
)
CommandButton2.SetFocus
End
Sub
Private
Sub
CommandButton3_Click()
DT.Bereich = 0
Unload
Me
UF_Tabelle_01.Show
End
Sub
Private
Sub
CommandButton3_MouseMove(
ByVal
Button
As
Integer
,
ByVal
Shift
As
Integer
,
ByVal
x
As
Single
,
ByVal
Y
As
Single
)
CommandButton3.SetFocus
End
Sub
Private
Sub
Check(str$, Key
As
MSForms.ReturnInteger)
If
Not
IsNumeric(str & Chr(Key))
Then
Key = 0
Beep
End
If
End
Sub
Private
Sub
TextBox2_KeyPress(
ByVal
KeyAscii
As
MSForms.ReturnInteger)
Check ActiveControl.Text, KeyAscii
End
Sub
Private
Sub
TextBox3_KeyPress(
ByVal
KeyAscii
As
MSForms.ReturnInteger)
Check ActiveControl.Text, KeyAscii
End
Sub
Private
Sub
TextBox4_KeyPress(
ByVal
KeyAscii
As
MSForms.ReturnInteger)
Check ActiveControl.Text, KeyAscii
End
Sub
Private
Sub
TextBox5_KeyPress(
ByVal
KeyAscii
As
MSForms.ReturnInteger)
Check ActiveControl.Text, KeyAscii
End
Sub
Private
Sub
TextBox6_KeyPress(
ByVal
KeyAscii
As
MSForms.ReturnInteger)
Check ActiveControl.Text, KeyAscii
End
Sub
Private
Sub
TextBox7_KeyPress(
ByVal
KeyAscii
As
MSForms.ReturnInteger)
Check ActiveControl.Text, KeyAscii
End
Sub
Private
Sub
TextBox8_KeyPress(
ByVal
KeyAscii
As
MSForms.ReturnInteger)
Check ActiveControl.Text, KeyAscii
End
Sub
Private
Sub
TextBox9_KeyPress(
ByVal
KeyAscii
As
MSForms.ReturnInteger)
Check ActiveControl.Text, KeyAscii
End
Sub
Private
Sub
TextBox10_KeyPress(
ByVal
KeyAscii
As
MSForms.ReturnInteger)
Check ActiveControl.Text, KeyAscii
End
Sub
Private
Sub
TextBox11_KeyPress(
ByVal
KeyAscii
As
MSForms.ReturnInteger)
Check ActiveControl.Text, KeyAscii
End
Sub
Private
Sub
TextBox12_KeyPress(
ByVal
KeyAscii
As
MSForms.ReturnInteger)
Check ActiveControl.Text, KeyAscii
End
Sub
Private
Sub
TextBox13_KeyPress(
ByVal
KeyAscii
As
MSForms.ReturnInteger)
Check ActiveControl.Text, KeyAscii
End
Sub