powerpoint

Powerpoint VBA - How to store information 'within' shape?

懵懂的女人 提交于 2020-01-25 11:58:24
问题 Say I have the following code within a sub: With square .Fill.ForeColor.RGB = RGB(255, 255, 255) .Fill.Transparency = 1 .Name = "Foo" End With I can now define searches based on its .Name and even use that name within the code (for instance, I could set some String value to the name of the shape). My question is - is there another way for me to store values 'within' a shape? Specifically, multiple Strings and Integers. If no, when I am setting the text of a shape based on some String and

VBA - Reference Label in PowerPoint Presentation with UserForm

南楼画角 提交于 2020-01-25 11:27:47
问题 I am attempting to use a VBA UserForm to edit an ActiveX label in a PowerPoint Presentation (which will serve as a textbox). I can't determine how to reference the label, however, and could use some direction. I have tried variations of Presentations("Combined Staff Agenda Template").Slides(0).Shapes("Date_Label").Value = LabelDate , but I still receive an error. The ActiveX label is on the first slide of the "Combined Staff Agenda Template" presentation, and is named "Date_Label". 回答1:

VBA - Reference Label in PowerPoint Presentation with UserForm

自作多情 提交于 2020-01-25 11:27:25
问题 I am attempting to use a VBA UserForm to edit an ActiveX label in a PowerPoint Presentation (which will serve as a textbox). I can't determine how to reference the label, however, and could use some direction. I have tried variations of Presentations("Combined Staff Agenda Template").Slides(0).Shapes("Date_Label").Value = LabelDate , but I still receive an error. The ActiveX label is on the first slide of the "Combined Staff Agenda Template" presentation, and is named "Date_Label". 回答1:

How do I insert picture based on textbox value in PowerPoint

强颜欢笑 提交于 2020-01-25 08:14:31
问题 I have a code which extract data from Excel and insert it into multiple slides in the PowerPoint. Dim I As Integer Dim oXL As Object 'Excel.Aplication Dim OWB As Object 'Excel.workbook Dim oSId As Slide Dim A As Integer Dim B As Integer Set oXL = CreateObject(“Excel.Application”) Set OWB = oXL.Workbooks.Open(FileName:="FileName.xlsx") A = InputBox(“Page From") B = InputBox(“Page To") For I = A To B oSId.Shapes(“Title l").TextFrame.TextRange.Text = OWB.Sheets(“Sheet1").Range(“A" & CStr(l)).

Open a Powerpoint file in Presenter mode

浪子不回头ぞ 提交于 2020-01-25 06:11:32
问题 I can open a Powperpoint file in directly in slideshow mode with this : System.Diagnostics.Process pptProcess = new System.Diagnostics.Process(); pptProcess.StartInfo.FileName = Environment.CurrentDirectory + @"\MyPres.pptx"; pptProcess.StartInfo.UseShellExecute = true; pptProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Maximized; pptProcess.StartInfo.Verb = "show"; // to open the slideshow pptProcess.Start(); Now Powerpoint allows us to see our notes and slideshow in

Removing hyperlinks in PowerPoint with python-pptx

耗尽温柔 提交于 2020-01-24 19:31:34
问题 Quite new to XML and the python-pptx module I want to remove a single hyperlink that is present on every page my own attempt so far has been to retrieve my files, change to zip format and unzip them into separate folders I then locate the following attribute <a:hlinkClick r:id="RelId4"> and remove it whilst removing the Relationship attribute within the xml.rels file which corresponds to this slide. I then rezip and change the extension to pptx and this loads fines. I then tried to replicate

Adding a macro from PowerPoint add-in to ribbon

我怕爱的太早我们不能终老 提交于 2020-01-24 09:23:13
问题 It's possible to add macros from a macro-enabled PowerPoint (pptm) presentation from the ribbon by right clicking in the ribbon and selecting Choose commands from: Macros. I want this to be available at any time, so I've saved the pptm file as an add-in (ppam) and loaded the add-in. However, I find that it is not possible to add the macro from the add-in in the ribbon. How can this be done? Do I somehow need to register all available Subs from Auto_Open or similar with something like: Sub

Convert PPT to PNG via python

99封情书 提交于 2020-01-24 06:33:28
问题 I want to convert PPT to png, or other image formats using Python. This question has been asked on SO, but essentially recommends running OpenOffice in headless X server, which was an absolute pain last time I used it. (Mostly due to hard to replicate bugs due to OO crashing.) Is there any other way, (Hopefully using Linux CLI utilities only, and pure Python above them?) 回答1: A basic workflow : convert your ppt to pdf by using a pdf printer from PowerPoint or OpenOffice's built in PDF

Linked Excel Object in Powerpoint wont update when showing in slideshow

岁酱吖の 提交于 2020-01-24 00:17:18
问题 I'm new to this and basically what I want to do is: -I have 2 excel files and 1 powerpoint presentation -all of the files are in a shared network -I linked my excel files to the powerpoint -I have office 2003 and 2007 versions The problem: I play the slideshow of the powerpoint and set it to loop on 1 computer to display it on a big LCD at work, I then access the excel files on a separate computer and update it from there, the problem is the slideshow that is playing wont display my changes

An automated way to load multiple images into PowerPoint on different pages?

允我心安 提交于 2020-01-23 12:42:51
问题 I need to load about 60 images, each on a different page, in to PowerPoint. Does anyone know of an "automated" way to do this. I don't want to go through slide by slide, and have to click "load image" on each one. If it was a one-time thing, I wouldn't worry about it, but we're summarizing results from some analysis that is ongoing and we'll have to do it many times. Thanks. edit: After brief discussion with co-worker, it seems that "insert -> photo album" does this easily. 回答1: From PPTools: