title: how to update a label caption in powerpoint from excel in vba
body: <p>I need to update a label caption using Powerpoint object from excel macro. I cant able to update.</p>
  
  <pre><code>Dim objPpt As PowerPoint.Application
  Dim objPre As Presentation
  Dim objSlide As Slide
  Dim objLayout As CustomLayout
  Dim objTxtBox As Shape
  
  Set objPpt = CreateObject("Powerpoint.Application")
  Set objPre = objPpt.Presentations.Open("H:\Macro\SamplePpt.pptm")
  ActivePresentation.Slides(1).lblHi.Caption = "Hello"
  Set objSlide = objPre.Slides.Item(1)
  Set objTxtBox = objSlide.Shapes.Item(1)
  
  lblHi.Caption = "Hello"
  </code></pre>
  
  <p>Help me to do this....!!!!</p>