How Can I Access Notes in a PowerPoint 2003 Slide - vb.net

I have been using VB to manipulate notes in PowerPoint presentations.
Until today, everything had been working fine (in PowerPoint 2007) using:
strReturn = myPres.Slides(commandeObject.slide).NotesPage.Shapes(2).TextFrame.TextRange.Text
But today I tried the code on a PowerPoint 2003 presentation and it threw an error saying that the object didn't exist.
I tried looking in shape 1 and 0, but I don't find the notes.
I then tried updating the presentation to the 2007 format, but the notes are still not accessible using VB, although they appear in the PowerPoint window fine.
Any suggestions on how I could find the notes in older presentations would be really helpful - I have lots of old presentations and it would take ages to rewrite them all...
Cheers,
Dave

I tried simliar code opening an old PowerPoint 2003 document that I confirmed had notes in it, and your code worked fine. What is the "commandeObject.slide" reference? I'm wondering if that is the problem?
Perhaps you could try something slightly different like this to loop through all the slides in the deck? This worked for me.
For Each s as Microsoft.Office.Interop.PowerPoint.Slide In myPres.Slides
Console.WriteLine(s.NotesPage.Shapes(2).TextFrame.TextRange.Text)
Next

Related

Change PowerPoint slide size in Excel 2013 VBA

I use VBA scripts in excel to generate PowerPoint slides for reporting. However since we've upgraded to to Office 2013 my slides are generating in the new default of Widescreen (16:9) rather then Standard (4:3).
What is the Command in VBA to change the size of the PPT slides you are creating? I assume it is a property of PowerPoint.Application but I couldn't figure it out.
Thanks, for the Help!!
-Colin
ActivePresentation.PageSetup.SlideSize = ppSlideSizeOnScreen
thanks

VBA in Excel to launch Google Earth stopped working

For about 6 months I have had a functional excel spreadsheet that when clicking a button ran a VBA script that created a properly formatted kml file from the lat/long information in the spreadsheet, saved the kml document, and launched Google Earth to view the plotted coordinates.
I successfully used this on June 6th. However, today I am getting this error
"License information for this component not found. You do not have an
appropriate license to use this functionality in the design
environment"
The KML file is still created and saved, but GE will no longer launch.
I have tried this Microsoft fix, but it didn't resolve the problem.
https://support.microsoft.com/en-us/kb/181854/en-us
Below is the part of the VBA that launches Google Earth. The "GEPlugin Type Library" reference is still checked in Microsoft Visual Basic for Applications :
Dim appGoogleEarth As EARTHLib.ApplicationGE
Set appGoogleEarth = New EARTHLib.ApplicationGE
Call appGoogleEarth.OpenKmlFile(OutputFile, 1)
Any help or insight into why this suddenly became a problem and how to fix it is greatly appreciated.
Google Earth Pro don't provide a library like the old version of GE. Then come back to the old version if you want use your XLS spreadsheet.

Getting the filename of a pasted picture with VBA in Word 2010

In Windows 7 the .alternativeText property contained the original filename of a dropped picture into a Word document. Now in Windows 8.1 (still using Office 2010) the alternativeText property is blank. Can anyone think of a way to get that original filename?
I found the answer. Drag/Drop doesn't set alternativeText, but Copy/Paste does. So I just have to make sure that the end user knows to do copy/paste instead.

excel graphs via VB script on powerpoint presentation

I have 16 graphs on a sheet named as Graphs and I would like this to be copied on 8 different slides. I have tried using the VB scripts available but it gives me an error where it says "path". i dont know VB and i am struggling with it. Can somebody please help me.

Macro fails in Word 2013

I have a Word macro that has been working fine for ages. I have recently upgraded to Word 2013 and the behavior has changed.
It occurs on the following line:
Doc.SaveAs Path + "Manual\" + TitleString + ".htm", wdFormatFilteredHTML
which builds a valid file path and name and saves the current document as an HTML page.
Under Word 2013, the macro opens a file save dialog box with no filename and with the default file extension (.docx) instead of (.htm), as if the filtered HTML mode was no more available.
I have tried with named arguments, and also with the new SaveAs2 method, but saw no change.
How can I solve this ?
I fond this comment on the DataZX.CN forum:"I Had the same problem. I'm running a windows 8/64bits on an ACER laptop. SOLUTION : remove the Add-in "Icloud Acer ...".
I happen to use Acer desktop, and there was indeed this Icloud add-in pre-installed in Word. After disabling it, the macro works !!!!!!!!!!!!!!!
Thanks StackOverflow for pointing me in the right direction as always...
and thanks Yves for spreading the info...
I removed Acer cloud plugin from Word and excel just to be on safe side.
Blame foolish manufacturers like Acer for another bundled piece of crap software that causes more harm than good.
Quoted from MSDN forum post...
http://social.msdn.microsoft.com/Forums/office/en-US/59c0da80-a7e6-4026-855c-f6b9fbf9c386/word-2013-vba-documentsaveas-dialog-appears-even-applicationclassdisplayalerts-?forum=worddev
...From all you tell me, my feeling is that there may be another third-party application (or a virus) mixing in - that the display of SaveAs is not coming from your application.
This is difficult for you to test, since whatever it is is probably loading with Word...