ActiveX Command Button Changes to Picture - vba

I had a strange issue with an excel file that was saved on Sharepoint 2010. The file is a macro enabled workbook that users download and save locally. The user enters their data then pushes and ActiveX command button on the cover sheet to launch background vba code.
The problem is that now when I download the file the ActiveX button is saved as an image. I checked the versions that I added to sharepoint and the last version I added had a working ActiveX button.
Has anyone seen this behavior before?
Thank you

Related

Edit a .ppam PowerPoint add-in and save changes

I have a very useful PowerPoint add-in in a .ppam format. I used the following method (Edit a .ppam file for customizing an add-in) to open it in VBA and slightly modify to better suit my needs. I would like to save the changes now, so that they are in effect whenever I open PowerPoint with that add-in. However, when I click 'File -> Save' in VBA Editor and restart PowerPoint, the changes I made are no longer there.
How do I save them?
You can't. You can either copy/paste from the edited modules/forms/classes into new modules/forms/classes in a PPTM file or export each of the modules/forms/classes and then import them into a PPTM.
I am maintaining one PowerPoint Add-in myself for a long time.
My way of doing it:
keeping the master file in ".pptm", and always maintain it there
as soon as the master files opens (can be hooked in Ribbonloaded event), it'll disable the running add-in
I developed a button to release current .pptm file replacing the .ppam add-in, so as long as I want to publish again, I'll click it.

After I save VBAProject.OTM and restart Outlook, macros can't work; the ribbon is greyed out

I'm using a few VBA macros in Outlook 2013 Professional Plus in Windows 7 Family Version. After a windows crash, my macro in outlook can't work.
ALT+F11 open VBA editor, find all ribbons are grayed out, no project in Project window. can't edit VBA in editor.
close outlook, delete %userprofile%\AppData\Roaming\Microsoft\Outlook\VBAProject.OTM, then restart outlook
ribbons are back to live, "Project1" show up in project window, i can insert new module and edit VBA and save macro.
after save, close outlook, confirm the new "VBAProject.OTM" is created with right time stamp.
restart outlook, back to 1, all ribbon grayed out, can't find macro/project, can't edit VBA.
I've checked with Google, but can't find similar issue or answers.
tried delete office and reinstall, still not working.
Some article mentioned (Digital Certificate for VBA Projects and Visual Basic for Applications), both are installed.
appreciate if you could provide some input.
thx a lot.
Some screen prints below:
All ribbons grayed out, can't load or edit VBA
Delete VBAProject.OTM then restart outlook

Creating PowerPoint Add-Ins from VBA defined Macros

So I've created a Macro in a PowerPoint Presentation and I would like to make this Macro readily available to someone else. From what I have gathered, the best way to do this is to create an Add-in.
I have come across several articles stating to do the following, but I am still running into problems:
Open a new PowerPoint Presentation
Create a macro using VBA
Exit VBA, and save the Presentation as a .ppam
Under the Developer Tab, click on the "PowerPoint Add-ins" button
Click the "Add New..." option, and browse for your recently created
.ppam file
Click Load
Click Close
Click Add-ins
You should now see your new Add-in
I have done everything mentioned above and can even see the new Add-in when I select PowerPoint Add-Ins. I'm here because I can't find a way to run the new Add-in, and I don't want it to automatically load on startup or to interfere with the presentation by creating a button on the slides. As instead, I would like to allow the user to run this Add-in from the Ribbon.
Thoughts?
First, save as PPTM. THEN save as PPAM. If you only save as PPAM, you won't be able to go back and edit your code later to correct problems.
To launch your add-in from the ribbon, you must include RibbonX code (a type of XML) to your PPAM or PPTM (best to add it to the PPTM ... it'll become part of the PPAM automatically then).
There's an excellent book on RibbonX that'll save you hours of time:
http://www.amazon.com/RibbonX-Customizing-Office-2007-Ribbon/dp/0470191112
This is a good starting point if you don't want to buy the book:
https://blogs.msdn.microsoft.com/jensenh/tag/all-office-2007-ui-posts/
While you can manually unzip PPTM/PPTX/PPAM files and add the RibbonX code using any text editor, it's silly to do so. Instead use this free tool:
http://openxmldeveloper.org/blog/b/openxmldeveloper/archive/2009/08/07/7293.aspx

Listview on worksheet generates cannot insert object error Excel 2010

Hi I have an Excel 2003 application which has a listview embedded in the worksheet. It no longer works on Excel 2010.
I re-registered the ocx using regsvr32 C:\Windows\System32\MSCOMCTL.OCX as per advice.
This works for listviews on forms, but not for the worksheet.
Microsoft advises that Cannot insert object can be generated if the control is form specific and an attempt is made to add to the worksheet.
Can the listview be used in Excel 2010 on a worksheet
If so how?
Otherwise a rewrite will be required.
That happened to my Excel files using ActiveX or any sort of automation. The solution was confused at the beginning but the following link will help you.
Create a batch to remove cached control type libraries (extender files *.EXD) files from Windows
Opening each of the projects (Excel with macros)
Switch the file to design mode
Open VBA Code (Alt-F11) to edit any module and press from the main menu > Debug > Compile VBAProject
Switch back to Run Mode
Save and Close File
Reopen the file & test
Form Controls stop working after December 2014 Updates

Word VBA Can't Exit Design Mode Error (Word 2003)

I have a Word form that has a bunch of command buttons, form fields, and combo boxes. There is a lot of code associated with the form both in the "ThisDocument" object and another module I added.
If I open the form by double-clicking the document from Windows, it opens and works fine when I enable macros.
However, if I open Word first, and then go to File > Open to open the form, I get an error message "Can't Exit Design Mode because Control cmdInstructions can not be created.
I've seen this error on a few other users' computers also, and it sometimes refers to different controls, not just the cmdInstructions button.
This problem began when we upgraded to Word 2003. Again, if you double-click on the document in Windows to open it, there is no problem. The message only crops up when you have Word already open (with a blank new document).
Has anyone seen this problem before? What do I need to do to my code to avoid this problem?
It may be late, but the answer is to upgrade to Office 2003 Service Pack 3