I built a workbook in Excel on my old machine that has a bunch of UserForms in it. One of the UserForms has an ActiveX spreadsheet control in it. This allows me to enter spreadsheet data into the UserForm. My old computer recently crashed so my IT department gave me a new machine that is running the same system (Microsoft Office 2010). Now, when I open the spreadsheet, I get:
Could not load some objects because they are not available on this machine.
I Googled this error and read through a number of pages. The first thing to try was installing Microsoft Office Web Components 11.0. Weirdly, this allows me to add a spreadsheet control to any UserForm I want to but I still cannot open the original sheet with all of its controls still in it.
Next, I tried these instructions but got no results.
Does anybody have any ideas?
Add a reference to Microsoft Forms 2.0 Object Library (found as FM20.dll)
Hth
Related
My whole team uses Office 365. This is my first attempt using the online sharing 'co-authoring' feature in 365. I created a 5-6 person, team-use Excel spreadsheet as an ongoing check-off log for a common task. I put in VBA "Done" buttons for when a team member finishes a task.
The file is on our company's OneDrive online folder (which I read was a requirement for co-authoring to work), but when opened in a web-browser the macro buttons are disabled -see screenshot. The VBA button macros come back and work great only when a user clicks "Open in Desktop App" and works it directly from the app -see 2nd screenshot.
Is there a way for the macro buttons with their VBA code to work in the browser view of the spreadsheet?
Thanks for any suggestions!
I have noticed that when users have the Windows file explorer preview pane enabled and then view a Word or Excel file, that my VSTO addin is started. Further my addin starts again when the user double clicks on a excel or word file.
What properties in Word and Excel do I need to check at startup to know that it is the preview pane?
For people's reference I did find a discussion on this for Powerpoint in this SO question.
When Word and excel are started by the file explorer as a preview then what I have found is that you can check for a commandlinearg of -Embedding
Environment.GetCommandLineArgs().Contains("-Embedding"))
Detecting Automation of Excel is where I found this answer. This question is about automation.
Also when a user embeds for example Excel in Word and then edits the embedded Excel the VSTO addin will start multiple times. You can check for the -Embedding arg for this as well.
Typically the ribbon bar is not visible when Office applications are used for rendering documents in the Windows explorer. You may use the following code to check that:
Application.CommandBars("Ribbon").Visible
A single machine, Windows 10 & Excel 2013, will no longer correctly display spreadsheets that have Form Control objects. ActiveX objects display correctly.
Form Control combo box
ActiveX combo box
Have removed and reinstalled Office, removed and reinstalled Visual Studio 2010, followed suggestions for FM20.dll and FM20ENU.dll, all to no avail. All updates to Office and Windows 10. Updated video drivers, checked Excel options and settings. No add-ins. No 3rd party Office or Excel tools.
The form can not be changed, easily and since other computers display correctly, don’t want to spend much more time on this. But finding out the root cause would be of great help.
Thank you in advance.
I have a user who just got a new computer (Windows 10 Pro running Office 2013) and he can no longer open a macro enabled workbook.
I finally identified that the Userforms are causing the issue when I created a new workbook and added some VBA to it. Everything worked fine until I went to insert a Userform, that's when it crashed. I did some additional testing and found he can open .xlsm files except when a userform is in the VBA.
I looked into the References in the VBA window and checked the libraries, he seemed to have what he needed and I added anything I thought was missing but nothing helped.
Visual Basic for Applications
Microsoft Excel 15.0 Object Library
OLE Automation
Microsoft Office 15.0 Object Library
Microsoft Forms 2.0 Object Library (keeps unchecking itself but even when checked doesn't help)
Ref Edit Control
What references could I be overlooking here?
The VBA code is not affecting it, I ran the opening code without any forms and it opened and enabled macros just fine.
What is preventing Excel from running a macro enabled workbook with userforms or adding a userform?
I have an excel spreadsheet which contains a calendar control (Microsoft Calendar Control 2007, MSCAL.ocx) and activex comboBox controls.
All works fine on my own PC but when i try it on another one (with the same version of excel i.e. 2007) it seems to lose the reference to the Microsoft Calendar Control 2007. I get an error message saying "Invalid qualifier" every time I reference the calendar in the VBA code.
I am hoping to find a solution to this problem that doesn't require the user to go into the VB editor and add a reference as this spreadsheet will be sent to many users, can anyone tell me if this is possible?
Thanks
Had to get the user to register the calendar control using a batch file, not ideal but it works