Hi,
Want to generate or display table for values entered in cell A2 to B2 cell. If the values of A2 and B2 cell change then table should be generated.
Tried with below code but didn't get desired output.
Thanks in advance for help.
Thank you!!
Regards,
Amit Singh
Want to generate or display table for values entered in cell A2 to B2 cell. If the values of A2 and B2 cell change then table should be generated.
Tried with below code but didn't get desired output.
Code:
Option Explicit
Sub table()
Dim i As Integer
Dim j As Integer
For i = 2 To 4
For j = 2 To 4
Range("K4").Activate
ThisWorkbook.Sheets("Table").Cells(j, i).Value = j * i
Next j
Next i
End Sub
Thanks in advance for help.
Thank you!!
Regards,
Amit Singh