Referencing an existing Excel object - powerpoint

I have an existing PowerPoint where several slides reference the same Excel spreadsheet that is embedded in the file.
I want to reference the same file in a new slide, but copying and pasting as object does not seem to work.
I tried going to the 'Insert' ribbon and selecting the 'Object' button. This did not allow me to reference an Excel object that already exists in the PowerPoint

You need to work through the Shapes.OLEFormat property, which allows you to run Activate and DoVerb:
ActivePresentation.Slides(1).Shapes(3).OLEFormat.Activate

Related

MS Outlook 2010 Split Contacts Into Two Groups

I recently upgraded from Outlook 2007 to 2010. In Contacts, the Contacts are now split into two "groups" - they weren't in 2007.
I haven't been able to figure out why they're split, or find any suggestions via Googling, so any suggestions would be very welcome!
You need to customize the current view in Outlook. See the video tutorial.
Also you may implement the required task using VBA programmatically. The CurrentView property of the Folder or Explorer classes returns a View object representing the current view.
To obtain a View object for the view of the current Explorer, use Explorer.CurrentView instead of the CurrentView property of the current Folder object returned by Explorer.CurrentFolder.
Views are defined and customized using the View object's XML property. The XML property allows you to create and set a customized XML schema that defines the various features of a view.

Excel-Addin with visible form

I have a query on the usage of windows form in excel add-in, application level.
Objective Statement:
Display customized windows form control, similar to a way a chart is being inserted into excel
Custom Pane
I have tried custom pane add-in but it seems to be on a entire workbook level, i need something on a worksheet level
Task Pane
I can't seem to use the task pane in application add-in for excel
Windows Form Control
When I click on a cell in excel i will lose focus to the windows form, i will need the windows to be together with the worksheet, but i can't use showdialog.
Thanks for the help in advance.
From your answer it is hard for me to figure out if you we are looking at a code solution here or something more high level, so I am going to assume that you are looking for a code solution, please correct me if I am wrong.
Have you considered using an OLE object or ActiveX?
There is an example from Microsoft here, how to develop an ActiveX control. (Here is some other walkthrough that I found helpful).
Just to give you a hint how it (the example mentioned above) looks like, here is the screenshot of the compiled example that I added onto the excel sheet:
ActiveX control can be added both manually, or by code, so I could imagine that you could also provide a COM Excel Add-in that would add some buttons onto the ribbon, that when pressed, would add the desired controls onto the sheet.

vs2012: inherit/reference user defined property sheets?

I have a decent handful of property sheet files (.props), here is a short example:
global.props
x86.props
x64.props
app.props
lib.props
It's very tedious to assign all of the correct property sheets to the correct configurations. What I'd like to do is create, for example, app_x86.props which simply references global.props, x86.props, app.props, so that I only have to assign one property sheet to each project configuration.
Is there any way to do this kind of referencing of property sheets?
This is perfectly possible with the UI: go to View->Property Manager, add a new property sheet, then add other property sheets to that sheet (right-click the base sheet, Add new Project Property Sheet, just like for adding sheets to the project). You will see VS indents them to show they are imported into another sheet. The created property sheet will of course also use the Import element as in your answer.
I found the answer. I don't think there's a way to do it via the VS GUI, but if you open the .props file in a text editor, within the tag you can do:
<Import Project="other.props" />
and this will do what I was looking for.
However, if you edit the property sheet using the VS GUI, when the file is saved it will no longer contain the import reference

Adding controls to a Property Sheet at runtime (without Dialog Templates)

As far as I can see, the way you normally create Property Sheets in Win32 (I am using the API, not MFC) programming is you have a bunch of dialog templates for each tab page, and you make the property sheet out of them. I have read about creating Dialog Templates 'in memory' but I would prefer not to do it this way. How do you add controls to a Property Sheet programatically at runtime, just like you can create a BUTTON and add it to a Window at runtime?
I suggest that you create a blank template and link that to your app. You can then create the property sheet with CreatePropertySheetPage and then add and remove controls to that property sheet as you please.
If you absolutely have to use a template built on the fly in memory, and you can't bring yourself to link a resource to your app, then you need the DLGTEMPLATE structure.

Inject Open XML into an Open PowerPoint Presentation

I'm looking for a way to inject PresentationML and/or DrawingML into an open PowerPoint 2007/2010 presentation using the Open XML SDK or just System.IO.Packaging. There is an article on doing this with Word, but in that example it is using the Range.XML routine in Word's object model, which I cannot find an equivalant for in PowerPoint's object model.
The reason I'm looking to do this is if I have an item on it that the PowerPoint client does not support editing of but that Open XML does (and as a result, PowerPoint will display it). I want to set this myself via a managed-addin (VSTO) on the open presentation. An example would be the underline of text (not that I'm looking for this, but it is an example) - in PowerPoint, you cannot make the underline of text a picture <a:blip/>, but in Open XML you can.
Does anyone know how to do this?
I am using both OpenXML SDK 2 and the Object Model to process presentations.
What I do, simplistic as it sounds, is to save the presentation, close it, perform all the XML modifications I need using OpenXML SDK, and then load the presentation back and continue with the Object Model.
Nope, according to Microsoft support: http://www.ureader.com/msg/10972430.aspx

Resources