powerpoint

Using VBA to insert/update image in PowerPoint?

ⅰ亾dé卋堺 提交于 2019-12-14 02:28:05
问题 I am making an interactive Powerpoint presentation that has previously read a text file from my local server (XAMPP) and displayed it. I'd like to now update it so that the user can hand-write their response, and it displays that on the slideshow. I have a jQuery plugin that lets someone use a stylus and it saves the 'drawing' as an image on the local server. My question is, how can I insert the image into PowerPoint using a VBA Macro? Or since the image always will have the same file path,

Editing underlying PowerPoint XML with Python (python-pptx)

荒凉一梦 提交于 2019-12-14 01:16:07
问题 I have PowerPoint files with many dozens of links to different sheets in an Excel document. I need to change the Excel documents to which these links point in a programmatic way. I'm pretty sure I could do this with VBA, but since I'm generating the Excel documents in python anyway I'd prefer to update the links there as well. I dug in to the underlying XML files for a test .pptx file and found that the link references live in the ppt/slides/_rels/ folder (after unzipping the .pptx file) For

How to modify text in Powerpoint via Excel VBA without changing style

末鹿安然 提交于 2019-12-13 21:34:02
问题 I am trying to replace a set of tags in the text of a powerpoint slide from Excel using VBA. I can get the slide text as follows: Dim txt as String txt = pptSlide.Shapes(jj).TextFrame.TextRange.Characters.text I then run through replacing my tags with the requested values. However when I set do pptSlide.Shapes(jj).TextFrame.TextRange.Characters.text = txt Problem: All the formatting which the user has set up in the text box is lost. Background: The shape object is msoPlaceHolder and contains

how to deduce the slide ppt position of a shape from the screen position of the mouse

杀马特。学长 韩版系。学妹 提交于 2019-12-13 21:27:20
问题 I'm using VB to implement a custom task pane for Powerpoint. I would like to display an image shape on the active powerpoint slide at the position of the mouse. I know screen position of the mouse by using " System.windows.froms.control.MousePosition.Y " .. So now it would be great to transform it into slide ppt position and fill the property "shape.top". I tried the function "screentoclient" but it doesn't work. What is the unit of shape.top on ppt slide? what is the unit of mouse's screen

Create add-in to add sticky notes in powerpoint (VBA)

谁说胖子不能爱 提交于 2019-12-13 16:29:17
问题 I would like to create a simple macro for powerpoint that would allow me to click on one button to automatically insert a yellow sticky note onto my slide so I can insert a comment. This is something I need to do over and over in my current job and right now I am wasting a lot of time, each time creating a rectangle -> coloring it yellow -> creating a black outline -> setting font color to red and size to 12.. Appreciate any help here, I know it should not be very hard! Thanks! example of

How to find current slide in Powerpoint Slideshow Window

泪湿孤枕 提交于 2019-12-13 09:05:20
问题 I create a Powerpoint add-in and I need to find which slide is active in Slideshow Window. I have this code: if (Globals.ThisAddIn.Application.SlideShowWindows.Count > 0) { for (int s = 0; s < Globals.ThisAddIn.Application.ActivePresentation.Slides.Count; s++) { //abc } } So I check if slideshow window is running and then go through all slides in presentation. But this is not very good solution. I want to get current slide immediately. 回答1: Here's the VBA to do what you want. It returns the

How to use VBA in PowerPoint to open an embedded OLE object

。_饼干妹妹 提交于 2019-12-13 07:40:41
问题 I think this is a simple question, but I have spent days searching for an answer and nothing yet. I have an OLE object embedded into a PowerPoint presentation (created using PPT 2010). I embedded it (a pdf file) through the insert>object>create from file>display as icon method, so that it displays as a little icon on a slide. My goal is to open it on click of a shape, where the shape is on a different slide from the slide the pdf is on. The pdf is on slide 5, the trigger shape is on slide 6.

How to provide VBA access for a modify password protected read only PowerPoint file?

和自甴很熟 提交于 2019-12-13 06:20:56
问题 I’m trying to create a free non-editable version of a PowerPoint slide that demonstrates how VBA can be used to make a slide very dynamic. The slide is an interactive stopwatch and there is a video of it here: http://i-present.co.uk/free-stuff/free-powerpoint-stopwatch/ VBA is used to modify various shapes on the slide based on the Windows API timer. In the free version, I want the VBA functionality to run but set the presentation up so that the slide objects cannot be edited. This is what I

Determining if a powerpoint text box is over the page size

天涯浪子 提交于 2019-12-13 05:47:44
问题 I've been researching this for a while and have not found any background on whether Powerpoint VBA can determine if an object (text box or table) is outside the bounds of the page dimensions. The specific application I am trying to manage is when I flow text into a PPT table from Excel, through a find/replace of specific data markers, I don't know the specific dimensions of the text, so I may overflow the page boundary. I cant shrink the text either, as I have to maintain the design fidelity

Add Watermark to PowerPoint Slide from Excel

好久不见. 提交于 2019-12-13 05:06:15
问题 I am trying to add a watermark to a PowerPoint slide from Excel with VBA and don't know where to start. I have searched on Google and found nothing. There is one question on Stackoverflow that helped a little but I couldn't follow it. I am wondering if someone could refer me to somewhere or point me in the right direction? Again, I just want to add a watermark to one of the slides in Master View. Thanks! 回答1: To change a slide in Master View, you can work with the CustomLayouts collection.