powerpoint

Inserting symbols into text in PowerPoint 2007 using VBA

半世苍凉 提交于 2019-12-11 05:07:37
问题 I need to append programmatically (VBA/VSTO) several special symbols (e.g., smileys) into text in a TextRange in PowerPoint 2007. I can insert a symbol using: With ActiveWindow.Selection.TextRange .Text = "sometext" Call .Characters(.Characters.Count + 1).InsertSymbol("Arial", 65, MsoTriState.msoTrue) End With Unfortunately, when I try to insert several symbols one after the other with different fonts, only the last one shows correctly and the previous ones show like empty squares. How can I

VBA gettng data from excel

妖精的绣舞 提交于 2019-12-11 05:06:16
问题 I currently have a powerpoint with a chart that was generated through an excel. What I need to do is get the values of the chart (or the excel, doesn't matter) in order to do some animations. The problem is that I can't seem to get my code to work. If there is ANY easier way to do this I will be glad to hear it! Here's my code: Sub moveRectangle() Dim pptChart As Chart Dim pptcd As ChartData Dim xlWorkbook As Object Dim PPPres As Presentation Dim pptShape2 As Shape Dim wb As Excel.Workbook

How do I edit a PPTX file via Java while it is open in Microsoft PowerPoint?

穿精又带淫゛_ 提交于 2019-12-11 04:57:37
问题 With reference to POI - Cannot write to file while it is opened in Excel? The required functionality for my Java application under development is the PowerPoint version of the above: Using Java, create a slide and add content generated from captured application data, then add the slide to an existing PowerPoint file that is currently opened in Microsoft PowerPoint. If no PowerPoint file is opened, the Java application will first open Microsoft PowerPoint if necessary, then create a new, empty

Return Array in Self-Calling Function in VBA

China☆狼群 提交于 2019-12-11 04:55:39
问题 I am trying to figure out how to return a string array in a function that calls itself. It is a function that looks through all folders and subfolders within a specific path to generate a list of text files and where they are located. Right now, the subroutine is All_Folder . I have previously tried making All_Folder a function, and trying to return the value from the function, but that has gotten me nowhere. This is my code now: Public file_locations() As String Sub Some_Subroutine() Dim

Enabling PowerPoint VSTO add-in by default

天涯浪子 提交于 2019-12-11 04:51:36
问题 When I install my VSTO-based PowerPoint plugin, it always shows up in the 'disabled' section and everytime I open PowerPoint - I have to manually enable it. How do I programmatically change this behaviour such that plugin is always enabled by default. 回答1: When you set an Office (VSTO) addin to be enabled (in Office), it changes the registry key: HKLM\SOFTWARE\Microsoft\Office\PowerPoint\Addins\YourAssemblyName "LoadBehavior" The LoadBehavior value must be set to 3 to load (ie enabled) (2 is

Java read pptx file

∥☆過路亽.° 提交于 2019-12-11 04:45:34
问题 Can someone help me how to read pptx file in java?i would prefer if this can be read with apache POI, i have been searched this tutorial but i can't find it.I've been successfully read the ppt file with this code : try { FileInputStream fis = new FileInputStream(file); fs = new POIFSFileSystem(fis); HSLFSlideShow show = new HSLFSlideShow(fs); SlideShow ss = new SlideShow(show); Slide[] slides=ss.getSlides(); for (int x = 0; x < slides.length; x++) { System.out.println("Slide = " + (x + 1) + "

Copy PowerPoint Slides in Java (preferably)

允我心安 提交于 2019-12-11 03:42:50
问题 I have a Java program in which I want to copy PowerPoint slides from one presentation into another. I have looked into the "Slides" API in Apache POI, but can't find any reference to a capability like that there. Though the calling program will be Java, I'm open to the idea of the actual work being in another language. For example, I could run on Windows and call a COM component through JACOB or something. How can I best achieve this? Also for clarification, I need to support both PPT and

Adding text / slide title to placeholder on slide with python-pptx

大憨熊 提交于 2019-12-11 03:28:25
问题 I am trying to add a title to my slide . I was looking up the documentation here and it says, "Setting the slide title Almost all slide layouts have a title placeholder, which any slide based on the layout inherits when the layout is applied. Accessing a slide’s title is a common operation and there’s a dedicated attribute on the shape tree for it: title_placeholder = slide.shapes.title title_placeholder.text = 'Air-speed Velocity of Unladen Swallows' " Actually my slide layout does not have

VBA save Presentation as PDF in Handout 2x2 format Office 2007

*爱你&永不变心* 提交于 2019-12-11 03:04:45
问题 I'm trying to save a PowerPoint presentation using VBA, and I want to save it as a .pdf in Handout format with 2x2 slides on a page. Can somebody tell me or point me to a link that tells me how to do it. I've done my homework on Google, but couldn't find it. Any help/suggestions/hints will be appreciated. I've tried searching the reference too, but I only reached the ppSaveAsPDF , which is anyway accessible from the VBE IntelliSense. But I don't know how to achieve the handout 2x2 part. 回答1:

Find text in PowerPoint and Replace with text from a cell in excel using VBA, but keep getting Run-time error '-2147024809 (80070057)'

大城市里の小女人 提交于 2019-12-11 02:46:29
问题 I'm trying to find and replace a list of words inside a PowerPoint slide with values from cells in an Excel file. I'm running the VBA on PowerPoint and it keeps giving this error Run-time error '-2147024809 (80070057)': The specified value is out of range. The code seems to stop at this line (the first one): Set ShpTxt = shp.TextFrame.TextRange Please help! I've been going through the other posts that have similar purposes and errors and tried about 20 different combinations, from both the