title: Code to Change Cell Value in PowerPoint(Office 365) VBA
body: <p>I'm making a game inside PPT for cybersecurity awareness month for my company. I'm using VBA to make a couple of extra features that make it slightly nicer than just a jeopardy style quiz. I've already gotten buttons to work (action buttons) that can hide pictures / make them visible, as well as a button that can change the text on another slide (E.g button on slide 2 sets global variable to "boop" and then changes textbox on slide 1).</p>
  
  <p>Right now i'm trying to figure out the code to do the same thing with a table made inside the slide. The table is already made (and renamed "testtable"). </p>
  
  <p>I want to select for example A2, and then make A2 = boop. I've tried a bunch of different code but can't figure out how to change the cell value.</p>
  
  <p>Thanks for help</p>
  
  <p>This code has worked perfectly to change text on a different slide</p>
  
  <pre><code>ActivePresentation.Slides(1).Shapes("textbox").TextFrame.TextRange.Text = randomInt
  </code></pre>
  
  <p>I've tried things like</p>
  
  <pre><code>ActivePresentation.Slides(3).Shapes("testtable").table.TextFrame.TextRange.Text = randomInt
  </code></pre>
  
  <p>I've tried changing the <code>.text</code> to <code>.value</code>. i've tried a bunch of other things but how card can it be to change a single cell?!</p>