How To Select Multiple TextBoxes In Presentation Mode, Copy & Paste Them To Another Slide - vba

I would like to create an Action Plan section within my PowerPoint presentation based on customer selections from various slides in presentation mode. I would like to present the topic slide and have the ability to select 1 or more items from it and once through each topic slide, copy and paste their selections beginning with the topic, followed by their selection. I have attached images of the PowerPoint. Slides 2 - 4 are topic slide examples, each containing a few comments to select from. Slide 5 is the Action Plan slide that captures their selections and is an example of what I am hoping for. I made an attempt at the coding, but failed horribly.

Removing my question. Will revise it and submit along with my coding attempt.

Related

Creating a PPT macro to send slide to section based on day/time

First time poster here! I am hoping someone can help me find a way to create a macro that would direct the powerpoint to advance to a certain section depending on the day/time. I have four sections (weekdayAM, weekdayPM, weekendAM, weekendPM) and a single slide at the start of the presentation with a textbox start button. Ideally, I would like to enable an onclick macro to direct to the appropriate section based on the day/time conditions.
Any ideas?

VBA for Powerpoint: Change Slide in One Powerpoint by Selecting Button in Another

I am a beginner at VBA.
I am designing a somewhat interactive Powerpoint presentation/s. I want to be able to have three separate Powerpoint presentations open that will link together. I have been trying (without success) to create, in VBA, code which will change the current displayed slide on one Powerpoint file by clicking a button in another. I can hyperlink to the set slide but this causes this slide to pop up on the same screen in which it is clicked, despite it being already open in another screen (I don't want this).
Thanks in advance for any help,
Holly
VBA uses an object model that is a huge hierarchy of attributes and functions that represent the application. You can use this model to view and update attributes to get text, resize, and modify the application. You should look at some tutorials to get you started. When editing your code, you can press F2 to see and explore this object model. You can press F8 to run your code line by line (debug mode) and see what is happening.
To your question, you can access the open presentations in the application.presentations object (https://learn.microsoft.com/en-us/office/vba/api/powerpoint.presentations). You could then use a presentation in that list and use the ActiveWindow.View.goToSlide function (https://learn.microsoft.com/en-us/office/vba/api/powerpoint.view.gotoslide). Here is a free tutorial that I've used in my VBA journey (https://www.tutorialspoint.com/vba/index.htm).
PowerPoint has a Presentations collection that contains all currently open presentations. You can get a reference to any of them via Presentations("name") where "name" is the filename of the presentation, sans extension.
So ... assuming you've got three presentations open, a.pptx, b.pptx, c.pptx you can do something like this:
Sub SlideChange()
With Presentations("c")
.SlideShowWindow.View.GotoSlide (3)
End With
End Sub
If you run the above in any of the presentations, it will change the slide show window displaying presentation c to the third slide.

VBA - applying bullet-point style from the slide master to selected text boxes

In VBA for PowerPoint, I want to applying bullet-point style from the slide master to selected text boxes. Is this even possible? I've been searching the internet for ages on this, and can't seem to find anything even close.
I can select or place text boxes on the slide in VBA, but I want to use the bullet-point layout as defined on the slide master - I just don't know how to select it, and once selected I assume I use the Shape.PickUp and Apply (or is there another way of doing this that I haven't thought of?)
Any help greatly appreciated.
David.

How to Detect Duplicate Slide Event in PowerPoint VSTO?

Is there an event to detect when the user duplicate a slide in PowerPoint?
PowerPoint doesn't fire a specific event when a slide is duplicated; there's just the event it fires when a new slide is added. If you can figure out a way to distinguish a duplicated slide from a newly added (or inserted) slide, that might help.
Since the duplicate will be directly after the original slide, you could compare, say, the number of shapes, type and position of each shape on the duplicate to the immediately preceding slide and if there's a match, it's a fair bet that it's a duplicate.
If you need to trap the event when a user Ctrl+Drags a slide to copy it to another location in a show, things get a bit more complex.
Chirag Dalal has a very useful page listing all of the events that PowerPoint supports and in which version of PPT they're supported:
http://www.officeoneonline.com/vba/events_version.html

maintaining image object visibility with vba

i am developing a large non-linear powerpoint which has many sub sections to it. This has necessitated a table of contents slide (TOC). in this slide i am representing each section with its own picture. also on the slide are 2 buttons which let the user switch between images. The buttons do this by setting the appropriate section image to visible and all the others to invisible, so that only one sections image is visible at a time. my goal is to make sure that whenever the user goes back to the table of contents slide that the slide displays the same section image each time, regardless of which section what entered the previous time, i.e. the image for section 1 should be visible whenever the user goes back to the table of contents. how do i go about doing this?
also, if i can find new sources to learn more about syntax and other vba coding, i would be most appreciative.
i already consult:
pptalchemy.co.uk
skp.mvps.org
msdn.microsoft.com
i just cannot find more good sites that will help.
I don't quite understand the situation, but one possibility:
Add another slide before the TOC. You could make it a duplicate of the TOC slide (with the image you want in place).
Instead of linking back to the "real" TOC slide, link to this one instead.
On this slide, add a rectangle that covers the entire slide, make it 99% transparent and give it a Run Macro mouse over action setting.
Have the macro do nothing more than set the image you want on slide 2 to be visible, then jump to slide 2 (the real TOC slide), eg
SlideShowWindows(1).View.GoToSlide(2)
The mouse over macro will trigger as soon as the user moves the mouse, and since that will trigger a jump from one slide to an identical one, it will be invisible to the user.
most of the solution came from [pptalchemy] (http://www.pptalchemy.co.uk/PowerPoint_Auto_Open_Code.html):
I downloaded the custom ui editor for microsoft office
I added the code from ppt alchemy to the custom ui editor for the slide show.
In vba i added the code:
Sub onloadcode()
Debug.Print "Running"
End Sub
Sub OnSlideShowPageChange(ByVal SSW As SlideShowWindow)
If SSW.View.CurrentShowPosition = SSW.Presentation.Slides("TOC").SlideIndex Then
'code here'
end if
end sub
the code executes perfectly now, and i have condensed my table of contents from 9 slides down to 1. Just, don't add features to the code until you have everything in place to accept them. In my case i added the code for text boxes which did not exist yet and that messed up my code a lot. Once i made all of the objects for the code and then added the code it worked perfectly.