powerpoint

Identify Shape on the slide in PowerPoint VSTO API using ID/Title/Whatever

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 06:44:56
问题 I'm writing a PowerPoint 2010 AddIn. In a nutshell this is what I do: Create PowerPoint Template (*.potx) with a great deal of defined Layout slides Write plugin that automates some common tasks that are made after presentation is done. One of them is to insert Agenda Slide (defined as Layout in SlideMaster) as the first slide in every section. After the Agenda Slide is inserted (that was pretty easy with: newAgendaSlide.MoveToSectionStart(sectionNumber) ) I must set the text of two Shape

PowerPoint 2007 SP2, ExportAsFixedFormat in PowerShell?

江枫思渺然 提交于 2019-12-08 04:40:59
问题 Yesterday I was trying to batch convert a group of PPTs into PDFs for a friend, and I decided to have a look at PowerShell, since it's been sitting on my HD for a while. Here's the code I've come up with. $p = new-object -comobject powerpoint.application # I actually don't know why I have to set the window to visible, # but it doesn't work otherwise, anyway, it's not the real problem I have $p.visible = 1 $f = $p.presentations.open('\some\file.ppt') $f.ExportAsFixedFormat('\some\newfile.pdf',

VBA Powerpoint Macro: Run in background

爷,独闯天下 提交于 2019-12-08 03:30:12
问题 Can a macro run in the background whilst the user is using the presentation? For example, some sort of auto-correct function or auto-format function> 回答1: This is very much possible. I have created a small demo to show how it can be done. In this demo, I have placed a command button and whenever it is clicked (in presentation mode), it displays a message. 回答2: If I really needed to do something like this for some reason, I would probably add a form, put any code that needs to run concurrently

R Markdown PowerPoint Slide Customization

时光怂恿深爱的人放手 提交于 2019-12-08 03:16:50
问题 --- title: "Untitled" author: "April 2018" date: "4/9/2019" output: powerpoint_presentation --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = FALSE) ``` ## Slide with Plot ```{r pressure, fig.width=30, fig.asp=0.618, out.width="200%"} plot(pressure) ``` I'm reading R Studio's guide to creating PowerPoint presentations in R Markdown. I'd like to be able to customize my slides to include two things: Stretch the image size to the full width of the slide Move the title up a bit and

VBA for shrinking the font in PowerPoint when text overflows

喜夏-厌秋 提交于 2019-12-08 03:01:57
问题 I'm trying to figure out a macros for PowerPoint files that I export after language conversion through a CAT tool. In some of the language pairs the translated content will not fit into the source file text boxes due to the differences in the language lengths. Therefore, the translated and exported PowerPoint files contain multiple shapes/text boxes that have some content outside of the visible areas of such shapes. I was wondering what is way to get the newly exported textual content within

Retrieve excel chart data from powerpoint slide (programmatically)

大憨熊 提交于 2019-12-08 02:15:23
问题 background When working in PowerPoint I always use an Excel spreadsheet that sits directly behind the chart, and links to a source workbook. This method ensures that: The data source behind the file is readily identifiable (link to network). The PowerPoint file can be edited directly if needed. The chart can be updated for a new scenario by re-linking the underlying spreadsheet to the source workbook. issue Recently I came across a PowerPoint file that I needed to use the data to create a new

Change the image of an image shape

僤鯓⒐⒋嵵緔 提交于 2019-12-08 01:56:20
问题 I want to be able to change the image of an image shape by clicking on an button in my userform. In the internet I found the function UserPicture , but the image simply stays the same. Private Sub ChangeImage_Click() ActivePresentation.Slides("Slide1").Shapes("SolutionA_Image").Visible = True ActivePresentation.Slides("Slide1").Shapes("SolutionA_Image").Fill.UserPicture ("D:\User\Desktop\SolutionWrong.jpg") End Sub Private Sub HideImage_Click() ActivePresentation.Slides("Slide1").Shapes(

Error: “The specified data type is unavailable” When pasting Shapes as PNG format in PowerPoint

我与影子孤独终老i 提交于 2019-12-08 00:59:22
问题 I need to write a macro to convert all grouped diagrams (shapes, arrows and text) in a PPT presentation to PNGs. (I am converting the PPTs using some eLearning software and the diagrams end up corrupt; and I need them to be PNGs because enhanced metafiles also present issues). I've been using some slightly modified code from a macro that converts Pictures (enhanced meta files) to PNGs. All I did was change msoPicture to msoGroup: Sub ConvertAllPicsToPNG() Dim oSl As Slide Dim oSh As Shape For

In powerpoint VBA, how to change the spacing of a font in a textbox?

自闭症网瘾萝莉.ら 提交于 2019-12-07 23:43:28
问题 Do you know what the command in VBA is in order to space out some text? I looked on the internet and didn't find anything that would work. this "SOMMAIRE" textbox has no spacing and this, is what I want that textbox to look like : there is more space in between the letters more exactly, I am looking for the VBA code for this exact button : 回答1: Use the shape's .TextFrame2.TextRange.Font.Spacing property. By default it is probably 0 . You can change it to other values to increase the font

R Markdown PowerPoint Slide Customization

孤街醉人 提交于 2019-12-07 23:43:25
--- title: "Untitled" author: "April 2018" date: "4/9/2019" output: powerpoint_presentation --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = FALSE) ``` ## Slide with Plot ```{r pressure, fig.width=30, fig.asp=0.618, out.width="200%"} plot(pressure) ``` I'm reading R Studio's guide to creating PowerPoint presentations in R Markdown . I'd like to be able to customize my slides to include two things: Stretch the image size to the full width of the slide Move the title up a bit and left align it After doing some internet searches I just can't determine how to do this properly. Maybe