How to get objects and VBA functions to work in Excel for Office 365? - excel

Created a workbook in Excel desktop that uses buttons and hyperlinks to run VBA functions. When
workbook loaded in browser-based Office 365, buttons do not appear and clicking hyperlinks gives
Sorry, we couldn't open this link. The link address may be invalid, or you may not have permission to open it.
How do I get desktop hyperlink and button functionality to port to Office 365?

You need to develop a Web add-in if you want to get your extra functionality working everywhere, see Excel add-ins overview. VBA is for Windows desktop applications only.

Related

Office Excel add-in not found

I have an Excel add-in that was certified and published about two weeks ago, but I can't find it from Excel, google search or any other methods.
Is there still something, i need to do for add-in to appear?
I also need to get the URL to add-in page, so that I can insert it to my website. Is it possible?

How to convert Excel macro enabled workbook for use on mobile phone?

I created a macro enabled workbook to enter information on the worksheet and to e-mail it.
I downloaded Excel for mobile but all macros are disabled.
Is there a way to make it so the workbook could be used on a mobile phone?
Unfortunately, the VBA engine does not function on the mobile version of Excel. Macro-enabled Workbooks (.xlsx) will open, but the macros will not run. Macro-enabled Templates (.xltm) and Add-Ins (.xla and .xlam) won't even open.
See Microsoft's support article Why can't I open my Excel File? for more information and a complete breakdown by file type and mobile OS.

Excel VBA Userform won't work on all computers

I have made a user's form using VBA excel code. Its working fine on my laptop however when I tried it on my office computer it doesn't work. I emailed the file to myself and downloaded it from Outlook in the office. Its a .xlsm file. It gives me an error message that macros have been disabled. I have already changed settings to enable macros and allow VBA projects. I reopened excel and checked again it still doesn't work. The downloaded file from outlook, when I click visual basic, it doesn't show me any user form or code at all. Not sure why.
My whole code is present in the user form part (file in a personal laptop). There is a button on "sheet 3" which basically opens the user form. Not sure if it's saving the code only locally on my computer. As per my understanding if it's saved in the file it should be a part of it even if its opened on any other computer. My laptop version is office 365 and office one is 2016. I am not an advanced user. Kindly advise what is the error out here.

How to open files from office excel task pane add-in?

I'm developing an Office Excel Task Pane add-in, and I have the need to import the content of external files (other spreadsheets and PDF files) into the active workbook.
On VBA (also VB and C#), workbooks could be open with the Workbooks.Open() method, but it is not available on Office/Excel JS library.
So, how may I open files from Office/Excel Task Pane add-ins?
Thanks in advance!
At this point in time our APIs do not support opening external applications.
Please feel free to submit your feature request at https://officespdev.uservoice.com/ and we will take it into account for future APIs.
Regards,
Philip, Developer on the Microsoft Office Extensibility team

Excel OLE - .NET COM AddIn behaves differently when Excel is embedded in an application

I have a .NET (C#) addin that uses a COM Shim dll to load itself into Excel. The addin works fine without any problem when Excel is run normally. The addin displays its own custom toolbar in Excel that is used to execute different commands.
When I embed Excel into another application (e.g. DSOFramer etc), the addin starts behaving strangely. It seems that if I disable a button on its toolbar then it does not get enabled again after setting the Visible property.
Also, I get a bunch of "Object reference not set" errors because the Application::Selection object is NULL which never happens when Excel is running normally. Sometimes I also get permission errors when Application::GetAddIns() method is called.
I am not sure what is happening here and I could not find an articles that explains the behavior of Excel COM Addins when Excel is embedded inside other application.
I have to admit I don't know much about dSOFramer, but I did run across the following items. I don't know if these help at all.
link text
link text
I contacted Microsoft Professional for this issue and found out that Microsoft now discourages embedding office applications. I was suggested to either stop embedding Excel into the application OR use only Excel 2007 that has a Ribbon UI. According to MS, the Ribbon UI does not have these issues.
The problem with the CommandBars is that the negotiation only happens during the OnConnection and no changes can be made afterwards.

Resources