Getting excel activex calendar control working on all machines - excel

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

Related

Why doesn't my Shared Excel 365 sheet allow VBA buttons to work in the webpage version of the sheet?

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!

How to capture custom button click event in outlook from excel?

I'm trying to control Outlook via Excel by VBA ofc.
My Excel code creates and XML that adds button to Message Ribbon.
The button's job is to save email to specific location given by Excel.
I cant run Excel macro from Outlook macro because you cant access VB Project of Outlook. It needs to be provided for couple of persons and this is hard to deploy and control. So I thought maybe I can capture click event of that button from excel. I've seen examples to capture Reply button but nothing else.
I'm looking for place in Outlook object where this information might be stored. And any help with that, different approaches are welcome as well.
It looks like you need to develop a COM add-in instead of VBA macro. First of all, you can't modify the Ribbon UI in Outlook from VBA macros as you do it in Excel. Second, VBA macros are not designed for distributing them on multiple machines. That is what COM add-ins were invented for. See Walkthrough: Create your first VSTO Add-in for Outlook to get started quickly.
The following articles provide instructions on how to create a custom ribbon UI:
Walkthrough: Create a custom tab by using the Ribbon Designer
Walkthrough: Create a custom tab by using Ribbon XML

Can't refresh webquery in Excel 2016

Since a few weeks I am using Office 2016 and I have a few Excel spreadsheets that collect data from my own webservice using a web query. As you can see, the webservice has the right properties in the connections dialog:
When I refresh, I always get the following error message:
It's in Dutch, but the error message says "Can't find Data Source". As you can see, the url of the webservice is not fully displayed. I can't find anything about it on Google, but did the length of a valid web query url change in the new version of Excel?
It works perfectly fine in Excel 2013 and Excel 2010.
After applying the Office Click-To-Run update (1609) to Excel 2016, I experience the same issue. It works in previous Excel versions, including 2013 and 2010. It seems a part of the URL in the GET request Excel makes is cut off.
By rolling back Office Click-To-Run update (1609), the problem disappears.
I have ended up working around this by shortening my URL's. This is probably only a solution to others if they can use an URL-shortening service (TinyUrl) or have control of the webservice.
It really seems like an Excel bug.

UserForm ActiveX controls not working on new machine

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

How to make an Excel Workbook have read-only access without C#?

We have an Excel workbook which is similar to an Error Codes database. Unfortunately the application is written in such a way similar to IF (ExceptionCode != AnyPreviousExceptionCode) THEN (Make New Exception Code) which gives the messy problem of new, never before seen exception codes appearing on our monitoring software and requiring a team of analysts to investigate. The point being that this Excel workbook of Error Codes changes alot day to day, especially if a big release comes out.
The problem I have is that there is a team who needs to have this workbook open as they need to consult what error code is what, but there is also one person who needs to update this workbook. Excel of course gives full rights to whoever opens the workbook first and everyone else has to wait, however we have a global team so it's not a simple matter of going over to someone and telling them "please can you share the workbook to me".
Is it possible in Excel to set some users as read-only and other users as write access and have this reflect on the GUI so Excel doesn't make the write access user wait for the read-only user to close the workbook?
In Win7 for Excel 2003, 2007 & 2010 there is a dropdown arrow on the right side of the open button in the open dialog. If you click that you get an option to open the file as Read-Only. Can the non editing users open it like this?
Shift+Right Click on an excel file also gives the option to open as read only.
Sorry man, did not see your question a month ago :)

Resources