End of statement expected

Joined
Oct 2, 2008
Messages
1
Reaction score
0
Hi. I'm Paul and I'm currently studying an FdSc in ICT. We have started using MVB 2005 and I've been following a tutorial from the internet. However I appear to be having a problem entering some code. So I just wondered whether someone would mind helping me, Please. The code is as follows :
Dim number1 As Integer
Dim number 2 As Integer
Dim answer As Integer

number1 = 3
number2 = 5

answer = number1 + number2

MsgBox(answer).
I have followed the tutorial correctly so it is confusing me. Everytime I enter it the error 'end of statement expected' appears followed by 'name number 2 is not declared.' Help would be appreciated. Thanks :). Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top