powerpoint-vba

VBA to Prevent Keyboard Input While a Package Object (XML) is Read into ADODB Stream?

只愿长相守 提交于 2019-12-23 07:48:52
问题 I am developing an application which opens and reads an XML document previously embedded in a PowerPoint presentation, or a Word document. In order to read this object ( xmlFile as Object ) I have to do: xmlFile.OLEFormat.DoVerb 1 This opens the package object, and I have another subroutine that gets the open instance of Notepad.exe, and reads its contents in to ADODB stream. An example of this procedure is available on Google Docs: XML_Test.pptm. During this process there is a few seconds

Exporting PowerPoint sections into separate files

穿精又带淫゛_ 提交于 2019-12-23 06:55:04
问题 Every week I separate a long PowerPoint file into separate files. The files must be in PowerPoint format, and contain only the slides that are contained in the 'sections' from the PowerPoint file. I need to: 1) Scan to see the number of slides in a given section 2) Make a file containing the slides within that section 3) Name that file the same as the name of the section, and save it in the same directory as the source file. 4) Repeat the process for subsequent sections. 5) Do this without

Exporting PowerPoint sections into separate files

浪子不回头ぞ 提交于 2019-12-23 06:53:37
问题 Every week I separate a long PowerPoint file into separate files. The files must be in PowerPoint format, and contain only the slides that are contained in the 'sections' from the PowerPoint file. I need to: 1) Scan to see the number of slides in a given section 2) Make a file containing the slides within that section 3) Name that file the same as the name of the section, and save it in the same directory as the source file. 4) Repeat the process for subsequent sections. 5) Do this without

Understanding format of tables in PowerPoint (VBA 2010) (resize text to cell)

只谈情不闲聊 提交于 2019-12-23 05:23:39
问题 Following issue: I declare tbl as Table in VBA. I want to show some tables in PowerPoint. If the text of the cells are too long, the cells get big and they go beyond the slide limits. I want to avoid that. I just want to resize the text, that means, I just want that the text gets smaller, in order to fit within the cell. That means, cell-table size should not be changed! How would you do that? I've tried: ppPres.Slides(NumSlide).Shapes(NumShape).Table.Columns(col).Cells(1).Shape.TextFrame2

Open an external EXE. file using VBA Powerpoint

谁都会走 提交于 2019-12-23 04:29:00
问题 Please help me make this code works. I want to open an external EXE file using Powerpoint VBA. Sub open_test() Dim FileName, FSO, MyFile FileName = "C:\test.exe" Set FSO = CreateObject("Scripting.FileSystemObject") Set MyFile = FSO.OpenTextFile(FileName, 1) End Sub There are no compiler errors, but when i execute the macro, it does nothing ... I have another alternatives to this code? please help me, thanks ! 回答1: If you just want to start the program, try using Sub open_test() Dim

VBA PowerPoint slide Title

本秂侑毒 提交于 2019-12-22 15:52:47
问题 I am working on a custom tool that generates customized Instructor notes for a given presentation. I am having a problem where I am processing a presentation where a slide basically has no Title object on it Then I run through the code it is bi-passing my if statements with . I have reduced the code to the basics to make it as easy as possible. My test lesson has a normal slide with the text place holder filled out, the next slide is a logo slide with no title text box, just a copyright

VBA PowerPoint slide Title

泄露秘密 提交于 2019-12-22 15:51:10
问题 I am working on a custom tool that generates customized Instructor notes for a given presentation. I am having a problem where I am processing a presentation where a slide basically has no Title object on it Then I run through the code it is bi-passing my if statements with . I have reduced the code to the basics to make it as easy as possible. My test lesson has a normal slide with the text place holder filled out, the next slide is a logo slide with no title text box, just a copyright

AppleScriptTask throwing an error 5 - invalid procedure call or argument

南笙酒味 提交于 2019-12-22 14:59:51
问题 I'm facing a problem on Mac 2016 Powerpoint. In my VBA module I need to run an applescript. As we cannot use MacScript anymore I followed RonDeBruin's explanation to use AppleScriptTask. My Applescript is working fine on his own but when I try to call it like this : AppleScriptTask("hello.scpt", "myhandler", "hello") With in my apple script on myhandler(paramString) say paramString End myhandler It gives me an error 5 - Invalid procedure call or argument my script is placed in Library

PowerPoint VBA - Update linked graph from Excel at regular intervals

孤街醉人 提交于 2019-12-22 11:06:00
问题 I'm trying to build this system where I have this PowerPoint presentation with a linked graph from an external Excel file. I've seen that I can right click this graph in PowerPoint and click "Update link" and the graph is automatically updated. But what if I want this automated? If this can be done without creating an Add-in that would have been great. So which event handlers are there in PowerPoint? I reckon there's an event for SlideChanged or something? Could I possibly have the

Where do I get started with VBA and macros programming in Word 2007?

三世轮回 提交于 2019-12-22 07:18:32
问题 I just came to know that macros in Word/Excel/PowerPoint can be programmed. That is awesome because I've a Word document with 70 tables for styling. I'm a programmer but I don't know VB, VBA or VB .NET. I'm confused with these three. I'm familiar with .NET programming using C#. Now I want to write new macros. Where should I get started? What are VB, VBA, VB.NET and which one should I learn? Please suggest some material. If I learn for Word 2007 will that help with other Office applications