Here is the code you posted:
S =InputBox
for S = 1 to x
InputBox "(Enter #)"
Next
msgbox "The Total is " & Sum i
Unfortunately it makes no sense. The InputBox function requires at least one
argument - see the detailed description (plus example!) in the help file
script56.chm which you can download from the Microsoft site. It should
probably look like this:
s = InputBox("Please enter a number", "My Calculator")
After you get the InputBox function right, the variable S will reflect the
number you entered. The next line of code should then probably read:
for x = 1 to S
instead of
for S = 1 to x
In other words, you had this line back to front.
"M.K" <MK@xxxxxx> wrote in message
news:0E2497D7-12C6-46B2-BCFE-8769E8E3BC89@xxxxxx
> no study course, it's self study.
>
> the vaule of x is variable.
>
> so if you open the script will appear inputbox and if you enter for
> example
> 2 it will follow by 2 inputbox and if enter 3 it follow by 3 inputbox so
> if
> follow by 3 inputbox and i enter in it the following 5, 2 and 3 than i
> want
> msgbox be 5 + 2 + 3 = 10
>