H4T3D

Vb.net

Mar 13th, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. var1 = Val(TextBox1.Text)
  2. var2 = Val(TextBox2.Text)
  3. var3 = var1 + var2
  4.  
  5. no
  6. datre
  7. name
  8. cell
  9. area
  10. city
  11. slip no
  12. med
  13. amount
  14. paid
  15. ,balance
  16. total
  17.  
  18.  
  19.  
  20. Private Sub CommandButton1_Click()
  21.  
  22. emptyRow = WorksheetFunction.CountA(Range("A:A")) + 1
  23. Cells(emptyRow, 1).Value = TextBox1.Text
  24. emptyRow = WorksheetFunction.CountA(Range("B:B")) + 1
  25. Cells(emptyRow, 2).Value = TextBox2.Text
  26. emptyRow = WorksheetFunction.CountA(Range("C:C")) + 1
  27. Cells(emptyRow, 3).Value = TextBox3.Text
  28. emptyRow = WorksheetFunction.CountA(Range("D:D")) + 1
  29. Cells(emptyRow, 4).Value = TextBox4.Text
  30. emptyRow = WorksheetFunction.CountA(Range("E:E")) + 1
  31. Cells(emptyRow, 5).Value = TextBox5.Text
  32. emptyRow = WorksheetFunction.CountA(Range("F:F")) + 1
  33. Cells(emptyRow, 6).Value = TextBox6.Text
  34. emptyRow = WorksheetFunction.CountA(Range("G:G")) + 1
  35. Cells(emptyRow, 7).Value = TextBox7.Text
  36. emptyRow = WorksheetFunction.CountA(Range("H:H")) + 1
  37. Cells(emptyRow, 8).Value = TextBox8.Text
  38. emptyRow = WorksheetFunction.CountA(Range("I:I")) + 1
  39. Cells(emptyRow, 9).Value = TextBox9.Text
  40. emptyRow = WorksheetFunction.CountA(Range("J:J")) + 1
  41. Cells(emptyRow, 10).Value = TextBox10.Text
  42. emptyRow = WorksheetFunction.CountA(Range("K:K")) + 1
  43. Cells(emptyRow, 11).Value = TextBox11.Text
  44. emptyRow = WorksheetFunction.CountA(Range("L:L")) + 1
  45. Cells(emptyRow, 12).Value = TextBox12.Text
  46.  
  47. Range("C19").Value = TextBox10.Text
  48.  
  49.  
  50. End Sub
  51.  
  52. Private Sub Label1_Click()
  53.  
  54. End Sub
  55.  
  56. Private Sub Label6_Click()
  57.  
  58. End Sub
  59.  
  60. Private Sub no_Click()
  61.  
  62. End Sub
  63.  
  64. Private Sub UserForm_Click()
  65. TextBox1.Text = 1
  66. TextBox2.Text = ""
  67. TextBox3.Text = ""
  68. TextBox4.Text = ""
  69. TextBox5.Text = ""
  70. TextBox6.Text = ""
  71. TextBox6.Text = ""
  72. TextBox7.Text = ""
  73. TextBox8.Text = ""
  74. TextBox9.Text = ""
  75. TextBox10.Text = ""
  76. TextBox11.Text = ""
  77. TextBox12.Text = ""
  78. End Sub
  79.  
  80. a = 1
  81. a = a + 1
Add Comment
Please, Sign In to add comment