powerpoint

Powerpoint VBA Macro to copy object's size and location and paste to another object

懵懂的女人 提交于 2019-12-01 05:31:14
问题 Just switched to Mac from Windows and in ppt on Windows I had an addin that allowed me to copy an object's properties including size and/or location and paste it to another object, sort of like an advanced format painter with toggles for the properties you'd like to copy. I don't have this addin anymore, but I'd very much like to create a simple macro to copy size and location. Is this in the realm of possibility? If so could you provide the code or point me at a resource where I can teach it

Powerpoint: Manually set Slide Name

﹥>﹥吖頭↗ 提交于 2019-12-01 03:16:02
Context: A PowerPoint slide in C# has a property Slide.Name (usually contains an arbitrary string value). In my C# application I would like to use this property to identify slides (the slide order is to unreliable). Question: How can I manually set the Slide.Name property in the PowerPoint Application? My problem is very like to the: “ How to name an object within a PowerPoint slide? ” but just on the slide level. Any help would be appreciated. There is no built-in functionality in PowerPoint that allows you to edit the name of a slide. As Steve mentioned, you have to do it using VBA code. The

Extracting comments from a PowerPoint presentation using VBA

泪湿孤枕 提交于 2019-11-30 21:34:46
I have a PowerPoint which contains around 50 slides. Each slide might have 1 or more comments provided by the reviwer (done using insert->comment menu). I am trying to get the comments programatically exported into a text file using this VBA code: Sub ConvertComments() ''# Converts new-style comments to old Dim oSl As Slide Dim oSlides As Slides Dim oCom As Comment Set oSlides = ActivePresentation.Slides For Each oSl In oSlides For Each oCom In oSl.Comments ''# write the text to file : (oCom.Text) WriteToATextFile oCom.Author, <what needs to come here>, oCom.Text Next oCom Next oSl End Sub In

When I try to use UI Automation for PowerPoint 2013, I can only get the first character/word when I use RangeFromPoint

本秂侑毒 提交于 2019-11-30 19:49:03
The code works for Word and Outlook but fails with PowerPoint in that only the first character or first word of the textbox ever gets selected. Is this a bug? Is there any workaround? Try this on a simple PowerPoint slide in PowerPoint 2013. private static async Task<string> getText(double x, double y) { string result = null; try { var location = new System.Windows.Point(x, y); AutomationElement element = AutomationElement.FromPoint(location); object patternObj; if (element.TryGetCurrentPattern(TextPattern.Pattern, out patternObj)) { var textPattern = (TextPattern)patternObj; var range =

C# - way to programmatically advance Powerpoint slide show?

走远了吗. 提交于 2019-11-30 17:33:00
I'd like to be able to advance through a Powerpoint presentation by pressing buttons in a Windows form. Here's some code I've found from http://bytes.com/topic/c-sharp/answers/272940-open-powerpoint-presentation-c-window-form that opens a Powerpoint presentation slide show: Microsoft.Office.Interop.PowerPoint.Application oPPT; Microsoft.Office.Interop.PowerPoint.Presentations objPresSet; Microsoft.Office.Interop.PowerPoint.Presentation objPres; //the location of your powerpoint presentation string strPres = @"filepath"; //Create an instance of PowerPoint. oPPT = new Microsoft.Office.Interop

How to “Refresh Data” via VBA in Power Point?

孤街醉人 提交于 2019-11-30 16:12:45
so far I have tried the Chart.Refresh and Chart.Update and also ChartData.UpdateLinks and neither work. My question is similar to this one only that this code did not work for my ppt How to update excel embedded charts in powerpoint? If i could Record Macro like in Excel the steps would be: 1.Select Chart 2.Chart Tools > Refresh Data This is code is what I have managed to write but it fails at "gChart.Application.RefreshData": Sub refreshchart() Dim ppApp As PowerPoint.Application, sld As Slide Dim s As PowerPoint.Shape Dim gChart As Chart, i As Integer ppApp.Visible = True i = 3 Set sld =

Call was rejected by callee PowerPoint Automation

大城市里の小女人 提交于 2019-11-30 15:41:52
I have a commandbar model which automates PowerPoint. I recently faced a strange problem that when PowerPoint is opened through my application, and the data is being loaded through my application to populate the menu. If a user right clicks on PowerPoint I get the error message: Call was rejected by callee powerpoint How do I resolve this? I'm using Office 2003/2007 and VB.NET for office automation. Did you see this tutorial?: How to: Fix 'Application is Busy' and 'Call was Rejected By Callee' Errors To fix errors: 1. Add the following class to your application. 2. Add a COM reference to

SDK to Read PPT , xls and .doc file in iOS

断了今生、忘了曾经 提交于 2019-11-30 11:37:22
问题 In my application i need to launch ppt , xls, pdf files. i am sure, iOS Framework support to view PDF files without launching any other application, but is there any way to open ppt , xls doc , if yes please give me any pointer, I believe, there should be some SDKs available , which can be integrated through an application and can make use of it. 回答1: If you just want to view the Office files, have a look at: Document Interaction Programming Topics for iOS: Quick Look Framework. Quick Look

How do I hyperlink to a specific slide of a .ppt file?

安稳与你 提交于 2019-11-30 11:31:52
I want to link to a specific slide in an online PowerPoint file, (e.g. http://www.example.com/hello.ppt ) but what I want is that when people click on my link, it goes straight to the nth slide. Is this possible? huseyint Link to http://www.whatever.com/hello.ppt #4 for slide 4 to be opened initially. Take a look at this site: http://www.tinyempire.com/shortnotes/files/specific_slide_in_ppt.htm Also, if you want a link to the nth slide within the same file (to automate the 'Edit Hyperlink' > 'Place in This Document' action) then omit the filename and only set it to "#n". I found the answer.

Include PowerPoint viewer into my WPF application

风格不统一 提交于 2019-11-30 10:37:15
I want to display my PowerPoint presentation into a WPF application. Requirements: Free (except PowerPoint is already installed on the PC) Has to be integrated into my WPF application, not an external one User must have the possibility to advance to the next slide, or go back Show animations I tried 2 solutions: Using DSOFramer, but they recommend to not use it anymore, and it doesn't support 2010 files. It's a no go. Using Microsoft.Office.Interop.PowerPoint, but it opens the PowerPoint as an external application... Tried the tool http://www.edrawsoft.com but it cost like 3500$ the licence I