ms-office

How to edit and copy non-VBA-macros?

别来无恙 提交于 2019-12-11 15:12:09
问题 Well, I know, there is a difference between VBA-macros and non-VBA-macros in Access. Creating and editing of VBA-macros is not very different from Word/Excel: you have a text field, where you can write your code: But what about editing of non-VBA-macros? For me, it looks like "programming using a mouse-clicking" (for me, as for the new guy in Access, it looks very weird): Questions: Is it a common and correct way to edit non-VBA-macros in Access "using a mouse"? Or, probably, there is another

How can I wrap my subtitles in MS Word with some predefined tags

可紊 提交于 2019-12-11 14:31:28
问题 I have a MS Word documents, with all the subtitle in a different format (font size and bold). I want to wrap the subtitles with a tag like {subtitle}My Subtitle{/subtitle}. What I have come up now is this: Ctrl +H More Options => enable wildcards Format => choosing the appropriate format of the subtitle. Find what: (*{1,}) , Replace with {subtitle}\1{/subtitle} Replace All The problem is the current regex wrap every single word with the {subtitle} tag. But not wrapping the whole subtitle with

How to retrieve the extendedProperties associated with emails in the sent folder from exchange

99封情书 提交于 2019-12-11 14:25:07
问题 We have created extendedProperties on emails using val uId = getUniqueId(); val emailExtendedPropDef = new ExtendedPropertyDefinition(uId,"uniqueId", MapiPropertyType.String) try { email.setExtendedProperty(emailExtendedPropDef, uId.toString) email.sendAndSaveCopy() } catch { case e: Exception => error(s"Exception in setting extended property for user $from", e) throw e } Now we want to iterate over the emails in sent folder and go over the extendedProperties for the emails that have been set

Outlook Com Add-In Deployment & Extensibility Issue

你离开我真会死。 提交于 2019-12-11 14:18:37
问题 I'm a developer writing an add-in for Outlook2003/2007 using C#, Visual Studio 2005. I'm also using the COM add-in wizard (not using VSTO, I have a Connect.cs). The program successfully runs with visual studio installed on my machine but when I try to deploy the software I am getting weird behavior. I have a logging system set up to write a few Extensibility.IDTExtensibility2 events (OnBeginShutdown, OnDisconnection, OnConnection, and OnStartupComplete) to a log file. When I run Outlook on

VBA macros stop working after delete commandbutton only in docm from dotm

徘徊边缘 提交于 2019-12-11 13:58:10
问题 I have a problem very similar to this However the answer there is not very clear, and I tried recreating the commandbutton in question, and it did not work. Basically I have various sections within the template and for each section I have two buttons [Add sub-section] - (CommandButton1, CommandButton11, CommandButton111) [Done] - (CommandButton2, CommandButton21, CommandButton211) Everything works fine in the template. But if I create a new doc by either double clicking on the dotm or right

How to modify MS Access database Properties collection (not data!) from a C# program?

最后都变了- 提交于 2019-12-11 13:44:21
问题 What is the best way to access Microsoft Access Database object's Properties (like in CurrentDb.Properties ) from C# in Visual Studio 2010? (Not essential: In fact I want to get rid of Replication in a few dozen databases "on demand". Replication is not in use for a few years, and it was OK for MS Access prior to 2013. Access 2013 rejects databases with this feature.) 回答1: You can iterate over and modify the properties in the Access database by using the Access DAO object library. The

Make IntelliSense work in Visual Studio

一曲冷凌霜 提交于 2019-12-11 12:59:59
问题 I am using Visual Studio 2015, and I want to add https://appsforoffice.microsoft.com/lib/1/hosted/office.js as an IntelliSense reference. So I did the following: But the IntelliSense still does not work: Could anyone help? 回答1: Getting the basics of JavaScript IntelliSense working is pretty straightforward – all you need to do is, in your JavaScript file, have a triple slash reference to the CDN location, as follows: /// <reference path=" https://appsforoffice.microsoft.com/lib/1/hosted

How to published an Office Add-In to SharePoint for use with Excel Web App

[亡魂溺海] 提交于 2019-12-11 12:52:12
问题 I am unable locate any information on the Internet that simply makes the statement, "Office Add-ins (aka Apps for Office) only work in Desktop apps and Office Online. They do not work in SharePoint office web-parts.", if that truly is a correct statement. I have a Excel Add-in and can published it using the following instructions: https://msdn.microsoft.com/en-us/library/office/fp123515.aspx . My add-in is a task-pane add-in (https://msdn.microsoft.com/en-us/library/office/fp123523.aspx) With

Refresh the Office Ribbon UI while the window is inactive

倖福魔咒の 提交于 2019-12-11 12:02:28
问题 I am working on a Office Ribbon project. (PowerPoint) A label on it is being periodically updated from a timer. (It is displaying the current number of connections to our server) When the PowerPoint window is in focus, the label is updated correctly. However, when the window is inactive, the updates are suspended. (they appear only after the PowerPoint window receives focus) This is an issue for multi-monitor setups, or when snapping PowerPoint to a half of the screen - we need correct data

how to append a multi-line text after a formula in Microsoft Excel?

蓝咒 提交于 2019-12-11 11:59:07
问题 I can make an automatically calcuated value appear a cell using '=' operator. For example, when cell F20 is 200 , I can enter in cell G20 =F20/10 Then, I see 20 in cell G20 . Now I want to add a note in cell G20 so that it appears 20 note 4) I know I can do =concatenate(F20/10," note 4)") but this obviously shows 20 note4) which is not what I want. How can I put enter (new line) in the appended text in this case? 回答1: You can use CHAR(10) which is newline: =concatenate(F20/10,CHAR(10),"(note