Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. Private Sub avgBtn_Click()
  2. Dim range1 As String
  3. Dim newdate As String
  4.  
  5. range1 = TextBox3.Value + "," + TextBox1.Value + " " + TextBox2.Value + "," + TextBox4.Value
  6.  
  7.  
  8. newdate = range1
  9.  
  10. Label7.Caption = newdate
  11.  
  12. End Sub
  13.  
  14. Private Sub cancelBtn_Click()
  15. Unload Task2
  16. End Sub
  17.  
  18.  
  19. Private Sub CommandButton1_Click()
  20. TextBox1.Value = ""
  21. TextBox2.Value = ""
  22. TextBox3.Value = ""
  23. TextBox4.Value = ""
  24.  
  25. End Sub
  26.  
  27.  
  28. Private Sub UserForm_Click()
  29. Unload UserForm1
  30. End Sub
  31.  
  32. Sub CommandButton2_Click()
  33. Dim myCell As Range
  34.  
  35. Set myCell = Nothing
  36. On Error Resume Next
  37. Set myCell = Range(Me.RefEdit1.Value).Areas(1).Cells(1)
  38. myCell.value = newdate
  39.  
  40. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement