ms-office

VSTO for the Mac?

梦想的初衷 提交于 2019-12-19 09:15:26
问题 I have built a custom Outlook toolbar option using VSTO which logs an email in a database. This works fine in Windows. However, I’ve been asked if we can migrate this to the Mac for Entourage which I think is the Mac version of Outlook. Can a VSTO application be ported to the Mac? Is it possible to build custom toolbar options in Entourage? 回答1: VSTO for Mac...no. This thread is older, but it still applies. 回答2: No. VSTO , .NET or VBA solutions do not support the current version of Office for

VBA Excel check if a particular table exist using table name

寵の児 提交于 2019-12-19 08:21:12
问题 I have several tables in an excel sheet. Each having unique table Name. I want to know if a table which has a name "Table123" exist or not in the current sheet. Could some one help me on this? Thanks Jeevan 回答1: TableExists = False On Error GoTo Skip If ActiveSheet.ListObjects("Table123").Name = "Table123" Then TableExists = True Skip: On Error GoTo 0 This code will work and avoid loops and errors 回答2: Here is an alternative function: Function TableExistsOnSheet(ws As Worksheet, sTableName As

Event on “Item Sent” in Outlook

亡梦爱人 提交于 2019-12-19 06:42:15
问题 I'm using ApplicationEvents_11_ItemSendEventHandler (see http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.applicationevents_11_itemsendeventhandler.aspx) to do some processing when an item is sent from Outlook. However, as this event fires on "send", rather than "sent", I'm unable to obtain certain information, such as the sender, sent time etc. Is there an alternative event that fires after the item has actually sent? I've read this blog post; http://easyvsto

Exception from HRESULT: 0x800401E3 (MK_E_UNAVAILABLE) Workarounds

情到浓时终转凉″ 提交于 2019-12-19 05:12:36
问题 From the following call Marshal.GetActiveObject("Excel.Application") I get a Operation unavailable (Exception from HRESULT: 0x800401E3 (MK_E_UNAVAILABLE)) I believe that this error is caused when the user permissions between my application and excel do not match. I want to know if there is a workaround as to how I can access the opened excel application regardless of how excel is opened, I can open the program that I want to access excell from as an administrator. Also I would like to know

Office add-in with both taskpane and content?

拟墨画扇 提交于 2019-12-19 05:00:24
问题 I spent all night looking this up and can't find it. Is it possible to have an Excel/Office add-in that has both content and taskpane components? Really, I want a content app, but I want extra options/buttons in the ribbon and taskpane that will trigger different actions/changes in my content app. Whenever I try to add the VersionOverrides xml node to my manifest on a content app, it always fails. None of my buttons show up. All the examples I can find that work have the namespace [...]

How to open .EXE with Javascript/XPCOM as Windows “Run…”?

送分小仙女□ 提交于 2019-12-19 04:50:16
问题 I have an intranet web application who needs to run some external applications, like Word, Notepad and other particular ones... My code allow the access with IE (ActiveX) and Firefox (XPCOM). When I use the whole path (like "C:\windows\notepad.exe") I can run in both browses, but y problem is: there's a lot of versions for some applications like Microsoft Word (2003, 2007, 2010...), and the local path is always different, BUT if I use the "Run..." option in Windows, I can only type "winword

Strip Chinese Characters from a string (vba)

戏子无情 提交于 2019-12-19 04:44:07
问题 I am using Microsoft Project VBA to translate my activity names from English to Chinese. My problem is I have some Chinese translations embedded in some of the English activity names. I want to strip out the Chinese characters before passing the string to Microsoft Translator. Any ideas as to how I can do that? 回答1: You can use a Regexp to strip the Chinese unicode characters Wikipedia lists the relevant characters below Sub Test() Dim myString as String myString = "This is my string with a "

determine version of microsoft office with java

时光毁灭记忆、已成空白 提交于 2019-12-19 03:53:06
问题 I wrote a program that creates a set of data that is outputted to an excel spreadsheet. I was originally using the jexcel library to write the data to the file, but I'd like to update the program so that it can check and see whether is should create a ".xls" or ".xlsx" file, then write to the appropriate document type. Apache POI seems to be the best option in terms of writing to a ".xlsx" file, but any ideas about determining the correct file type? I could just have the user choose when

Check if Office.js is loaded outside of Office client

喜你入骨 提交于 2019-12-19 03:11:20
问题 If we load a webpage referencing office.js outside Office client, we will get a warning: Office.js is loaded outside of Office client . This information is useful. Does anyone know if there is an API to check that inside my code? Edit 1: I explain a little bit my scenario and why I ask this question. I am making an application with angularjs which can be loaded in a browser as a web page or in Office as an add-in. And I realise that we should not do <body ng-app="myApp"> and angular.bootstrap

Office 365 / EWS Authentication using OAuth

人走茶凉 提交于 2019-12-18 13:38:01
问题 I'm trying to log onto Office 365 Exchange Online using OAuth and EWS Managed API. I am able to use connect to the Office 365 Web API's (REST), so I do have a valid Token from the Active Directory Authentication Library (ADAL). Now, I'm trying to connect using EWS and TokenCredentials. The code is pretty easy, I think: public static ExchangeService ConnectToServiceWithImpersonation(string token) { var service = new ExchangeService(ExchangeVersion.Exchange2013_SP1); if (true) { service