VBA, Active X and Legacy Tools alternatives in word - vba

I currently have a 4 page document that has a lot of active x control boxes with VBA controlling it. This document is housed in a third party application to allow us to record information that stays within a record in that application.
After a recent upgrade to the application I have been informed that it will no longer support documents using Active X or Legacy controls. I have recreated one of the shorter documents using content control and VBA. Are there any tools to convert the document I currently have? or what are the best alternatives to active X and the background controls?
I hope that makes sense

You've found the best alternative in Content Controls. Most Content Controls are compatible with Office back to the 2007 version. They also work in Word for Mac 2016 and 2019. I haven't heard of any utilities that can automatically convert ActiveX controls to Content Controls. The VBA is quite different between the 2 control types, so you'll definitely have some re-writing to do.
Here is Microsoft's page about using Content Controls with VBA: Working with Content Controls
In addition, there are resources like Greg Maxey's pages about Content Controls and VBA: Content Controls

Related

VBA options to scrape contents from currently loaded webpage in edge (or IE), or Excel directly?

Background: Many years ago, I used Excel VBA to scrape some dynamic web pages; I had to scrape it from IE after it was loaded (the page wasn't directly accessible from Excel without a lot of sendkeys & password hassles). I find myself in a similar situation and am wondering if MS tools have progressed in recent years to provide an easier way.
Situation: I'm not a UI person, haven't looked at the page code yet to untangle anything; I have a dynamic, visual org chart where each person has a box/tile (image, title, name, etc) and the whole chart changes depending on who is selected. The page is served from a passworded SAAS, so I'm not excited about trying to access the site directly with Excel - I think the right answer is still to scrape what is already loaded in the browser.
The core problem is formatting - I need to be able to move the boxes around (closer together, and change the layout a little) so it fits better on powerpoint slides.
Since it has been a while since the last time I did this, I'm just posting to see what I should know before starting: am I stuck with IE, or does Edge allow other programs to access the loaded pages via VBA? Do any of the 'data source' options in Excel do a good job of parsing visual page content in a way that would make it easier to scrape? Is there a completely different method I should learn?
Thank you in advance for any advice!

Powerpoint 2013 alternative to saving as .mht

My work laptop was just reimaged with office 2013 and one of the first things I noticed was the removal of the option to save a ppt as a single file web page. One of the products that I routinely update on our sharepoint is a ppt slide with hyperlinks and rollover screen tips to make it interactive when viewed as a presentation.
I'm looking for advice on finding an alternative to using a .mht in conjunction with a page viewer web part to display the "live" slide. I'll also note that the office web apps feature is not currently enabled or available in the site settings.
Thank you and take care.

Placing a bitmap into a Powerpoint Add-In

All:
I am writing a PowerPoint add-in that will allow a user to drop specific safety related images onto a map. I've written the code that copies the images and places them on the slide and I would like to place it into an add-in. Unfortunately, I cannot find a way to either:
a) place the images into the add-in
b) reference images if I were able to place them in the add-in
The alternative approach is to require the user to start with a special template that includes all of the images and then load the add-in to get the menu functionality. I would much rather have a single file that contains both the code and bitmap images.
With best regards,
Walt
PPA files contain only code, not presentation content like images. As an alternative, you could distribute a PPT/PPTX that you open invisibly and extract the image you need.
After quite a bit of looking around I found a solution that resolves the problem adequately. Using Microsoft's Custom UI Editor, I created an XML entry in the PowerPoint Presentation that performs the Auto_Open function that would have been part of the Add-In. This allows me to add the menu functions that will be responsible for loading the specific images.
I've added a reference page at the beginning of the presentation that contains instructions on how to use the template... This page also contains all of the images that are used by the visual basic code. The 'Visible' flag on these images are set to False so the user does not see them. As they are copied from the reference page into the presentation, the Visible flag is set to True and they are pasted onto the current slide.
It is not a perfect solution, but it is adequate...

Cocoa API to extract data from a Microsoft PowerPoint presentation

Is there any API available in Cocoa(not COCOA-Touch) for a MAC OS based app that can extract data from a Microsoft PowerPoint presentation?
I need it for a Mac OS X-based application in which I need to read the contents of a presentation.
I need to extract the slides and template separately. Specifically, I need to:
Extract slides as images.
Extract the template as a separate PowerPoint template file.
Extract only the text in the slides.
I have done lot of googling, but found only that Applescript can interact with it. But it opens the presentation and then only it interacts with the presentation.
If there’s no API available, then what could be the best way to do this?
All Microsoft Office apps have an AppleScript interface that allows at least some access to the documents' inner structures. I have no experience with PowerPoint, but Excel works fine.
You can google for Microsoft AppleScript Reference.

How to create a program on top of Visio?

Is it possible to make a standalone/independent (from visio) program that is built on visio. Say, can i attach some of the design templates and visio drawing page on to my form??
Thanks
Visio supports VBA. With that, you can add all kinds of interactivity to your document.
And, you can embed visio in another program with the activex control.
Both of these methods require visio to be installed on the machine (if that's what you were getting at by the "independent" comment).
The Visio Viewer may or may not install the activex control or support VBA, I don't know.
There's a value stream mapping tool called SigmaFlow VSM that is an application built on Visio like you want to make. Basically the tool loads up Visio and strips out a lot of the Visio toolbars and puts their own UI in. Obviously it requires you have Visio installed.
There's a similar tool called eVSM that leaves the Visio UI in place, but provides a toolbar and templates and stencils for the purpose of building value stream maps.
I prefer the eSVM approach, where you end up giving the user the full ability to do whatever they want within Visio, while making the very specific task of Value Stream Map diagram creation easy.