How to present Powerpoint presentation in xpages? - xpages

I've searched and found posts about Powerpoint but not in xpages. Can someone direct me how I program my powerpoint presentation in xpages? Each of the slides has navigation to another slide depending on what they click on the previous slide so that functionality would need to be included. Thanks.

Related

Add Close button to Chart in excel add in

I am working on Excel Add-in and need to show some charts to user. Issue I am facing is that there is no close button on charts and users wants to have some button on chart which can close/hide it. I am unable to find any such option in Office.js and Excel JS API. Can anyone guide me how I can achieve this.
You can't do anything in an add-in that cannot be done by a user through the Excel interface. Since Excel charts don't have a hide/close button, you can't programmatically put such a button charts. The user can remove a chart following the instructions here: https://support.microsoft.com/en-us/office/delete-a-chart-eea1ec2f-fc41-4a8d-ba4b-fcdc7b12d9bf

Select PowerPoint Slide using Names in Excel environment

I've set up a macro that copy/pastes graphs and tables from a spreadsheet to specific slides in a pre-existing PowerPoint presentation using excel VBA. In the code, I have to specify the exact slide number to copy the excel graph to (done 100+ times).
The issue is that when slides are added/deleted from the presentation in the future, the slide numbers will change and I will have to go through the code and manually update each slide reference.
I'm looking for a way to name slides in PowerPoint then use those names in my excel vba code? Eliminating the risk of slides being added/deleted later on (which will definitely happen).
This post is similar in concept( vba powerpoint select a slide by name), but I can't seem to get it working using the excel vba.
An excerpt of the code I'm using to paste a graph is below. Instead of referencing slide 54, I'd rather use a named slide like "Performance":
Set oPPT = GetObject(, "PowerPoint.Application")
Set presUpdate = oPPT.Presentations("Presentation Name")
With presUpdate.Slides(54)
.Shapes.PasteSpecial(DataType:=xlBitmap).Select
.Shapes("Picture 1").Left = 34.01559
.Shapes("Picture 1").Top = 96.36512
End With
Thanks
Suppose you have 3 topics, Performance, Issues and Sales
In the master layout of the PowerPoint document create 4 slide layouts and rename them to
Performance
Issues
Sales
Others
Once that is done, sort and paste all the content according to the topics (yes this is a painful process, but its one time), by right clicking on the slide and choosing one of the 4 layouts.
If the document contains 100 slides, the below is the scenario
Performance: 20 slides
Issues: 30 slides
Sales: 10 slides
Others: 40 slides
Even if they are reordered you can write a macro that can search for the slide name and relevant changes can be done.
The main point here is that the SLIDE NAME is your INDEX and having them sorted like this will help you in the long run.
Hope this answers your question

How to inject excel data to embed powerpoint chart with VBA

I want to know how we can inject excel data into embed powerpoint chart.
Any information that I search taught me how to do it, but with create new presentation. I need to update the existing chart from powerpoint using data from excel.
And the method should not be update link or something. Because I deal with more than hundred charts, I'm afraid linked method will take huge resource that cannot handle by my device. The other reason is I need to keep the chart editable in powerpoint (something that cannot done with paste link method).
Any suggestion?
Thanks
it depends of the version of you office. I have 2016 office, so it is very simple to do
these are the steps
Go to INSERT and lok for "Tables", then the opcion called (excel)
An excel view is going to open, then in the sheets you can inser your information, make a table format also
In the excel view the go to Insert, Recommended graphics and select the one you want
here some photos
step 1
excel view

Internals of copy paste slide in PowerPoint

I have a highly customized PowerPoint template with a layout named "Title and Content".
When I copy paste (using Destination theme option) a "Title and Content" slide from a presentation based on my customized template to default Office template based presentation, pasted slide ended up with a layout named "1_Title and Content" even though default Office template has "Title and Content" layout.
I was expecting copy pasted slide to follow destination theme and use layout available if layout names are matching. Any idea why that is not happening in this case? How do I force such a behavior using VSTO?
If your layout were exactly identical to the existing one, PPT would use the existing one. If it's the least bit different, to avoid corrupting either the pasted slide or the other existing slides, PPT will give you those #_XYZ numbered+named layouts.
You can't prevent it.
You can, instead, write code to look for these #XYZ layouts, find the matching layout w/o the # and apply it to the slide, then delete the #_ version of the layout.
Or, possibly, instead of copy/pasting the slide, create a new slide in the target presentation (based on the same layout as the source slide), then copy/paste the content into it.

Custom Menu visible to one document in Excel

I have created customized menu and toolbar in MS Excel. I wanted to show this menu and toolbar to specific document only. When I open any other xls file, it shows that menu and toolbar.
MS Excel 2003
How to do that using vba-excel macro or any other way to do that?
If you need more information, please ask me.
Thanks :)
OK - so this website will help you:
http://www.ozgrid.com/VBA/custom-menus.htm
It actually works in Excel 2007 also, but adds the menu under the Add-Ins tab.
You basically need to access the code for ThisWorkbook in the VBA application. From there, you can modify the Application.CommandBars object to do what you need.

Resources