Norie said:Dan
Surely there is more than one answer to the first question?
1. Type the variable as Long
2. Don't type the variable
3. Type the variable as Variant.
Yes, you're right! I guess they would have been valid answers.
'Norie said:On question 4 could you not use this:
If strName = "" Then MsgBox "No name entered"
All a matter of taste/preference I suppose.
You certainly could. The question was in no way meant to be a complete list. You could also use:
Code:
strName = InputBox("Please enter your name")
On Error Resume Next
Dim a
a = 1 / Len(strName)
If Err.Number <> 0 Then MsgBox "No name entered"
or many other variations.
Anyway, goodnight!
Dan