Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Dave - once again. the Option Explicit work wonders. Apparently I was
way too tiered for this yesterday and should have just left it alone. Many cudos to you for all your assistance with this project. Carrie Dave Peterson wrote: Add this line to the top of your userform module: Option Explicit This will make you declare your variables. It would have caught the typo (one vs ell) and the typo with TestBox vs TextBox. Option Explicit Private Sub CommandButton1_Click() Dim LastRow As Range Dim Response As Long Set LastRow = Keys.Range("b65536").End(xlUp) LastRow.Offset(1, 0).Value = TextBox1.Text MsgBox "Record written to Training List" Response = MsgBox("Do you want to enter another record?", vbYesNo) If Response = vbYes Then TextBox1.Text = "" TextBox1.SetFocus Else Unload Me End If End Sub Here is the code I got from the Microsoft site for "How to Use a UserForm for Entering Data" But I cannot get the code to work. I get a compile error, User [quoted text clipped - 26 lines] Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200802/1 -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200802/1 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
User Defined Type not Defined error | Excel Programming | |||
"User-defined type not defined" message in Excel | Excel Discussion (Misc queries) | |||
Workspace faux user-defined type not defined | Excel Programming | |||
User-defined data type; Error: Only User-defined types... | Excel Programming | |||
Word.Document - user defined type not defined | Excel Programming |