Datentyp definieren VBA
21.06.2005 10:50:06
Andreas
habe hier eine Eingabemaske mit verschiedenen Feldern, Jetzt möchte ich aber das Feld "Textbox2" als Zahl Long mit Vorgabe "", und das Feld "Textbox2" als Date, die anderen Felder als String definieren.
Wie muss ich das machen?
Vielen Dank für jeden Tipp Gruss Andreas
Private Sub CommandButton1_Click()
Dim irow As String
With Sheets(1)
irow = .Cells(65536, 1).End(xlUp).Row + 1
.Cells(irow, 1) = Datensatz_neu.TextBox1
.Cells(irow, 2) = Datensatz_neu.TextBox2
.Cells(irow, 3) = Datensatz_neu.ComboBox1
.Cells(irow, 4) = Datensatz_neu.TextBox4
.Cells(irow, 5) = Datensatz_neu.ComboBox2
.Cells(irow, 6) = Datensatz_neu.TextBox6
End With
Unload Datensatz_neu
End Sub