How do I translate this code into access?
The code will display X number of text boxes on the X axis and Y number of textboxes on the Y axis.
Dim i%, x%, l%, j%, y%
l = 40
x = Range("A1").Value
y = Range("A2").Value
For j = 1 To y
m = m + 20
l = 40
For i = 1 To x
l = l + 60
ActiveSheet.OLEObjects.Add(ClassType:="Forms.TextBox.1", Link:=False, DisplayAsIcon:=False, Left:=l, Top:=m, Width:=50, Height:=15).Select
Next i
Next j
The code will display X number of text boxes on the X axis and Y number of textboxes on the Y axis.
Dim i%, x%, l%, j%, y%
l = 40
x = Range("A1").Value
y = Range("A2").Value
For j = 1 To y
m = m + 20
l = 40
For i = 1 To x
l = l + 60
ActiveSheet.OLEObjects.Add(ClassType:="Forms.TextBox.1", Link:=False, DisplayAsIcon:=False, Left:=l, Top:=m, Width:=50, Height:=15).Select
Next i
Next j