Guest User

Untitled

a guest
Feb 12th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Dim currentNr As String
  2. Dim index As Integer
  3.  
  4. index = 2
  5. currentNr = ActiveSheet.Cells(index, 1).Value
  6.  
  7. 'schleife läuft solang bis eine leere Zeile kommt
  8. While currentNr <> ""
  9.     index = index + 1
  10.     currentNr = ActiveSheet.Cells(index, 1).Value
  11. End While
  12.  
  13. 'ab hier steht in index der nächste freie zeilenindex nach der Tabelle
  14.  
  15. ActiveSheet.Cells(index, 2).Value = DTPicker1.Value
  16. ActiveSheet.Cells(index, 3).Value = TextBox2.Value
  17. ActiveSheet.Cells(index, 5).Value = TextBox3.Value
  18. ActiveSheet.Cells(index, 6).Value = TextBox4.Value
  19. ActiveSheet.Cells(index, 8).Value = ComboBox1.Value
  20. ActiveSheet.Cells(index, 9).Value = TextBox5.Value
Add Comment
Please, Sign In to add comment