I would like to populate all of the selected cells in a PowerPoint table with randomly generated numbers using PowerPoint VBA.
I am able to insert a randomly generated number at the current cursor position using this sub-routine:
Sub RandomNumberGenerator()
Dim oRange As TextRange
Set oRange = ActiveWindow.Section.TextRange.Characters
oRange.Text = Int(Rnd()*10000)
End Sub
How can I extend it to fill in random numbers in all selected cells of a Table
?