Trying to use User form to capture email address, then submit to
second worksheet, blankout input field then repeat if necessary. Put
in exit function by looking for "end".
Any suggestions on modifications to VBA code would be appreicated.
Sub Workbook_Open()
Dim MyInput
MyInput = InputBox("Enter your Email Address")
MsgBox ("Hello ") & MyInput & (" Thanks for entering the contest &
Good Luck")
Worksheets("WLWE").Range("A3:A3").Value = MyInput
If MyInput = "end" Then End
NextRow = Worksheets("Email_Data").Range("A65536").End(xlUp).Row + 1
Worksheets("Email_Data").Cells(NextRow, 1).Resize.Value = Array
(Worksheets("WLWE").Range("A3").Value, Worksheets("WLWE").Range
("A3").Value)
Worksheets("WLWE").Range("A3").Value = ""
Workbook_Open
End Sub