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

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.

Related

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

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.

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.

Detect when workbook is activated / deactivated - OfficeJS Add-in

Can an OfficeJS add-in detect whether or not an Excel workbook has been activated or deactivated? For example, when a user clicks away from an add-in hosted workbook to go to a different workbook / application (or goes from a different application to the add-in hosted workbook).
This is planned in requirement set 1.8, and the work is in progress. Please visit the OpenSpec for Excel at https://github.com/OfficeDev/office-js-docs/tree/ExcelJs_OpenSpec.

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

Hidden Excel Application gets visible when user opens new workbooks

I am using Excel Interop inside my C# Desktop Application to open a hidden Excel Application in the Background, which reads data of some Excel files.
Works fine so far, until the user opens his own workbooks with the Windows Explorer. His Workbooks are opened in my Excel Application, which gets visible and the hidden workbooks too. Then he can close the Application, which crashes my Process.
Is there any possibility to get my Excel application blocked, so the user gets his own Excel Application if he opens workbooks?
Not exactly answering your question, but you can try using the OpenXML SDK to read the contents of the Excel files. Using this SDK, you won't be launching any instance of Excel at all.
Have a look at the following links for reference
https://msdn.microsoft.com/en-us/library/office/cc823095.aspx
https://msdn.microsoft.com/en-us/library/office/gg575571.aspx

Resources