Entering information into the Notes section of a PowerPoint slide using VBA -


I am trying to figure out how to write VBA to enter a text box in a slide, Also entering text I am also trying to find Vba to enter text in the notes section of Power Point Slide.

Any help would be greatly appreciated. I have tried to find this site specifically, but are not able to do this

text Entering is similar to entering the Note section in a PPT slide.

You have to start with a slide object reference, which shows the slide you are adding; And you add a text box shape to the collection of slides' shapes.

Example:

Ex addTextBoxToSlide () Dim oDestSlide as PowerPoint.Slide set oDestSlide = ActivePresentation.Slides (1) Dim SlideWidth Single Slide Width as Single Slide Slide = Odysslides.Paint. Page Set Up Slide slide towards slide Lightweight = oDestSlide.Parent.PageSetup.SlideHeight dim octbox as PowerPoint.Shape set oTextBox = oDestSlide.Shapes.AddTextbox (_orientation: = MSOtextororientation, _length: = 0, _ upper: = 0, _ width: = slideout, _ Height: = slideshow / 12) Otexbox. Textframe Textrex Text = "text size here" end sub

This all adds a text box size on the first slide in the active presentation at the top of the slide. It is wide in the form of slides and the height of the slides is 1/12th. The parameters of the sizes. Adextbox () are very self-explanatory ...

To add to the Notes section, I use the NotePage object on the slide which is in your Notes page ... so the above code Also about:

  set oTextBox = DestSlide.NotesPage.Shapes.AddTextbox (msoTextOrientat ...  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -