powerpoint

How to auto execute a macro when opening a Powerpoint presentation?

女生的网名这么多〃 提交于 2019-11-26 23:36:05
问题 I have a pretty basic question, but could not find the answer on internet. In Powerpoint 2010, I have a macro that I would like to be executed everytime the Powerpoint document is opened. How to achieve this ? Thanks ! 回答1: Try to write this function. Sub Auto_Open() MsgBox("welcome") End Sub Replace the msgbox in your code. 回答2: While Auto_Open doesn't run in a PowerPoint presentation, you can fake it. Add a CustomUI part to the presentation, then use the CustomUI OnLoad callback to run code

Turn off screenupdating for Powerpoint

家住魔仙堡 提交于 2019-11-26 21:38:29
问题 I am writing a script that loops through a folder and creates graphs from some criteria, and then exports these to powerpoint. At the moment, creating 130 graphs takes 290 seconds, of which 286 are used by powerpoint. I suspect a major reason for this is not being able to turn off screenupdating for powerpoint. I have tried using code from here http://skp.mvps.org/ppt00033.htm to solve this. However, I'm not noticing any effect. While I can alt-tab and keep powerpoint in the background, when

Embed a PowerPoint presentation into HTML

与世无争的帅哥 提交于 2019-11-26 21:24:04
Is it possible to embed a PowerPoint presentation (.ppt) into a webpage (.xhtml)? This will be used on a local intranet where there is a mix of Internet Explorer 6 and Internet Explorer 7 only, so no need to consider other browsers. I've given up... I guess Flash is the way forward. Steve Pasetti Google Docs can serve up PowerPoint (and PDF) documents in it's document viewer. You don't have to sign up for Google Docs, just upload it to your website, and call it from your page: <iframe src="//docs.google.com/gview?url=https://www.yourwebsite.com/powerpoint.ppt&embedded=true" style="width:600px;

How to copy a chart from Excel to PowerPoint?

大兔子大兔子 提交于 2019-11-26 20:59:18
Is there any way I could copy a chart from an excel spreadsheet to a powerpoint, preserving the original formatting and embedding the data ? There was already a question about copy pasting charts programmatically. However, there was nothing said about data embedding The biggest problem is embedding the data. As far as I know data embedding requires recreating the chart from the beginning in the power point. (PS: By embedding i do not mean linking to an external excel file.) David Zemens What you need to do is invoke the PasteSpecial "Keep Source Formatting and Embed Workbook". Assume you have

Can PHP read text from a PowerPoint file?

蹲街弑〆低调 提交于 2019-11-26 17:49:40
问题 I want to have PHP read an (uploaded) powerpoint presentation, and minimally extract the text from each slide (grabbing more info like images and layouts would even be better, but I would settle for just the text at this point). I know that google apps does it in its presentation app, so I am guessing there is some way to translate the powerpoint binary, but I can't seem to find any info on how to do it. Any ideas on what to try? Thanks - 回答1: Depending on the version, you can take a look on

Writing custom code for PowerPoint using leap motion?

て烟熏妆下的殇ゞ 提交于 2019-11-26 17:48:13
问题 I am trying to make a gesture based PowerPoint slideshow . JavaScript would certainly not work here as I want my slideshow to work when that particular PowerPoint file (.ppt) is opened for windows. I googled, posted a question on the Leap Motion forum, but in vain. My primary concerns are: I am unsure about what to use here. Are there some SDKs for this purpose? In simple words, how do I write some custom code for a PowerPoint file on our system? Leap Motion apps can be developed with C#, C++

Paste Excel Chart into Powerpoint using VBA

可紊 提交于 2019-11-26 17:43:01
问题 I'm trying to create an excel macro that copies charts displayed on an excel sheet, and pastes them (paste special) into a PowerPoint. The problem I'm having is how do I paste each chart on a different slide? I do not know the syntax at all.. This is what I have so far (it works but it only pastes to the first sheet): Sub graphics3() Sheets("Chart1").Select ActiveSheet.ChartObjects("Chart1").Activate ActiveChart.ChartArea.Copy Sheets("Graphs").Select range("A1").Select ActiveSheet.Paste With

edit chart data in powerpoint

梦想的初衷 提交于 2019-11-26 16:56:54
问题 I would like to edit the values of a chart within a powerpoint file. I can't seem to find the appropriate methods like .Range and .Cell anywhere. ActivePresentation.Slides(sl).Shapes(sh).Chart.DataTable does not seem to have all the methods in the conventional DataTable method. 回答1: Something like this should work: With ActivePresentation.Slides(sl).Shapes(sh).Chart.ChartData .Activate .Workbook.Sheets(1).Range("A1").Value = "test_data" .Workbook.Close End With 来源: https://stackoverflow.com

What is the best way to access a serial port from VBA?

淺唱寂寞╮ 提交于 2019-11-26 16:09:50
问题 What is the best way to access a serial port from VBA? I have a need for some of our sales reps to be able to send a simple string over the serial port from an action button in PowerPoint. I don't commonly use VBA, especially for anything like this. Normally I would turn it into an application of some sort, but I actually don't think the idea is that bad. It will be a handy tool for them to demo this device with while on a projector and talking to other sales guys and non technical people.

PowerPoint to JPEG convertor

荒凉一梦 提交于 2019-11-26 15:14:24
最近做毕业设计答辩需要到一个比较好的模板,虽然我收集了数千个模板,但是PPT自动缩略图所得的效果太差,要查看PPT都需要自己手动打开,很麻烦,费事情。今天用C#写了一个小程序,实现了PowerPoint到JPEG的转换,可用于速查PPT、PPTX、POT的内容。简单方便实用。代码稍显混乱。 请在这之前安装OFFICE 2007。 PS:第一版程序忘了p.Close(),也就是关闭当前打开的幻灯片,导致最终内存占用达到1.5G,运行速度爆满,超级寒~~~ using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using System.IO; using Microsoft.Office.Core; using Microsoft.Office.Interop.PowerPoint; namespace PPT_to_JPEG { class Program { [STAThread] static void Main( string [] args) { ApplicationClass ac = new ApplicationClass(); string srcRoot; string dstRoot; FolderBrowserDialog