Saturday, 17 May 2014

excel macro to create multiplication table excel vba program to create multiplication table for any number

Program-This creates table of a number upto 10.

Sub Button4_Click()
Dim num, i As Integer
num = InputBox("Enter a number whose multiplication table is to be found out")
For i = 1 To 10
Cells(i, 1).Value = num * i
Next i

End Sub


Comment below if you want code to create table upto any number.

2 Comments:

At 2 July 2016 at 12:22 , Blogger shashi kumar said...

Its Not working

 
At 2 May 2019 at 01:11 , Blogger Unknown said...

It's not working

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home