Hi! I need to be make a multiplication table from a user input variable. I am using a for loop and have that part down; however, I need the multiplication table to be output in only one message box. This is the code I have so far....
Could someone please shed some light on how to stop from looping a new message box each time and only return one involving the entire table?Sub Multiplication_table() Dim x As Integer Dim answer As Double x = InputBox("Please enter an integer to be used in a multiplication table.") For i = 1 To 10 answer = x * i MsgBox ("" & x & " * " & i & " = " & answer) Next i End Sub
For example I need to return
1*2=2
2*2=4
3*2=6
4*2=8
5*2=10
6*2=12
...and so on for x=2 THANKS
Bookmarks