Afzaal Ahmed
New Member
Members
Forum Posts: 1
Member Since:
November 23, 2023
November 23, 2023
Offline
Sub math()
Dim num As String
Range("c2:g21").ClearContents
a = Range("a2")
a2 = Range("a3")
Range("c1:g21").NumberFormat = "@"
b = Range("b2")
d = 1
For Count = 1 To b
c = a * a
Range("c" & d + 1).Value = WorksheetFunction.Rept(a, d)
Range("d" & d + 1).Value = "X"
Range("e" & d + 1).Value = WorksheetFunction.Rept(a2, d)
Range("f" & d + 1).Value = "="
num = WorksheetFunction.Product(Range("c" & d + 1).Value, Range("e" & d + 1).Value)
Range("g" & d + 1).Value = num
d = d + 1
Next Count
End Sub
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Charles Johnson
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Catalin Bombea: 1944
SunnyKow: 1432
Anders Sehlstedt: 956
Purfleet: 415
Hans Hallebeek: 377
Frans Visser: 351
David_Ng: 318
lea cohen: 248
Jessica Stewart: 219
A.Maurizio: 216
Newest Members:
Techia Braveboy
Charles Buchanan
Tiago Braga
Rehan Baig
Fred HORVATH
Silke Schmidt
Stuart Barr
Amelia Nolte
David Wier
T P Collins
Forum Stats:
Groups: 3
Forums: 25
Topics: 7154
Posts: 31382
Member Stats:
Guest Posters: 50
Members: 34655
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —