So hab jetzt etwas gefunden, was meinem Code ähnlich sah.
habe diese Zeile gefunden zum Anzeigen Textboxinhalt in Euro:
Code:
ActiveCell.Offset(0, 3).Value = CCur(.TextBox4)
Diese Zeile habe ich dann in meinem SpinButton Code an gleicher Stelle eingefügt:
Code:
Private Sub SpinButton1_SpinDown()
If TextBox20.Value = "" Or TextBox20.Value = 1 Then Exit Sub
TextBox20.Value = TextBox20.Value - 1
With Sheets("BluRay-Liste")
ActiveCell.Offset(0, 3).Value = CCur(.TextBox12)
TextBox19.Value = .Cells(TextBox20.Value + 1, 2)
TextBox18.Value = .Cells(TextBox20.Value + 1, 3)
TextBox16.Value = .Cells(TextBox20.Value + 1, 4)
TextBox15.Value = .Cells(TextBox20.Value + 1, 8)
TextBox17.Value = .Cells(TextBox20.Value + 1, 6)
TextBox12.Value = .Cells(TextBox20.Value + 1, 9)
TextBox13.Value = .Cells(TextBox20.Value + 1, 7)
TextBox14.Value = .Cells(TextBox20.Value + 1, 5)
TextBox10.Value = .Cells(TextBox20.Value + 1, 10)
TextBox11.Value = .Cells(TextBox20.Value + 1, 11)
TextBox23.Value = .Cells(TextBox20.Value + 1, 12)
TextBox21.Value = .Cells(TextBox20.Value + 1, 14)
Call Cover_einfuegen
End With
End Sub
Private Sub SpinButton1_SpinUp()
Dim lngMax As Long
lngMax = WorksheetFunction.Max(Sheets("BluRay-Liste").Columns(1))
If TextBox20.Value = lngMax Then Exit Sub
If IsNumeric(TextBox20.Value) Then
TextBox20.Value = TextBox20.Value + 1
Else
TextBox20.Value = 1
End If
With Sheets("BluRay-Liste")
ActiveCell.Offset(0, 3).Value = CCur(.TextBox12)
TextBox19.Value = .Cells(TextBox20.Value + 1, 2)
TextBox18.Value = .Cells(TextBox20.Value + 1, 3)
TextBox16.Value = .Cells(TextBox20.Value + 1, 4)
TextBox15.Value = .Cells(TextBox20.Value + 1, 8)
TextBox17.Value = .Cells(TextBox20.Value + 1, 6)
TextBox12.Value = .Cells(TextBox20.Value + 1, 9)
TextBox13.Value = .Cells(TextBox20.Value + 1, 7)
TextBox14.Value = .Cells(TextBox20.Value + 1, 5)
TextBox10.Value = .Cells(TextBox20.Value + 1, 10)
TextBox11.Value = .Cells(TextBox20.Value + 1, 11)
TextBox23.Value = .Cells(TextBox20.Value + 1, 12)
TextBox21.Value = .Cells(TextBox20.Value + 1, 14)
Call Cover_einfuegen
End With
End Sub
Beim ausführen blieb er an dieser Stelle stehen.
Gefunden hab ich die Lösung unter folgenden Link:
http://www.herber.de/forum/archiv/352to3...xtbox.htmlbeatwortet von Rainer
War wohl falsch?
Oder lag ich schon fast richtig?
Gruß
MdeJong