add-in

Unable to edit cells after a setSelectedDataAsync in Excel

杀马特。学长 韩版系。学妹 提交于 2019-12-12 04:19:34
问题 I'm developing an add-in for Excel using the Office Add-ins platform. In this add-in I'm writing data to a range using the setSelectedDataAsync** function. It works fine, but after the data is written, I'm not able to delete or edit the cells (although I can select new ranges) unless I click anywhere outside the worksheet or double click a cell. I think it is an issue with Excel not regaining focus correctly (the filename in the top of the app remains grayed out). Some users seem to think

Place breakpoints at all referenced locations in VS 2008

回眸只為那壹抹淺笑 提交于 2019-12-12 03:38:12
问题 The "Find All References" option in the VS editor helps us in finding the locations where a specific object is used. But is there any way so that I can automatically place a break-point at all those locations? Placing break-points for an object referenced at say 100 locations sees impossible! Is there any tool/addin out there which does this job? 来源: https://stackoverflow.com/questions/13799309/place-breakpoints-at-all-referenced-locations-in-vs-2008

C# : Closing a windows form on excel closing event

雨燕双飞 提交于 2019-12-12 02:48:23
问题 My situation is that I'm developing a C# application which is launching an instance of a Microsoft Office Excel Application. I change some of the Form's functions so that the instantiated Excel Application is being killed and cleaned up from memory when my Form's being closed. What I want to do is to perform the opposite. I'd like my instance of Excel to close my windows Form when it's being exited. 回答1: Ok, I haven't even tried this so I'm not sure if it will work, but you could try

How would I implement this code into my Excel Add-In?

£可爱£侵袭症+ 提交于 2019-12-12 02:26:10
问题 I have a large Excel macro that I turned into an Add-In ( .xlam ) file and since I will be keeping the public version of this Add-In on a shared network drive I was following the advice of Ken Puls from here, by using the following code to be able to deploy future versions of my Add-In (for updates, fixes, etc).: Sub DeployAddIn() 'Author : 'Macro Purpose: To deploy finished/updated add-in to a network ' location as a read only file Dim strAddinDevelopmentPath As String Dim strAddinPublicPath

How to open the URL for authentication inside the iFrame?

感情迁移 提交于 2019-12-12 01:43:44
问题 I am trying to use a rest API for authentication in my outlook add-in but it is being redirected to a separate browser window instead of rendering in the Iframe and control never comes back. 回答1: Because of security constraints you cannot implement the OAUTH flow within the addin sandboxed iFrame, so the popup window is a necessary workaround. Here is the best solution to achieve the OAUTH flow in popup. Microsoft is well aware of the problem and has started to work on a dialogAPI that avoid

How to read the data from Non Adjacent Cells in Excel using C#

馋奶兔 提交于 2019-12-12 01:33:37
问题 I have an excel sheet, in which i have multiple cells selected, which are not adjacent to each other. When the user click on the button, we need to read all the cells data, process it and write it to some other cell. If the cells are adjacent to each other, i was able to get the range and able to perform the operation. But if the cells are not adjacent to each other, i am not able to get the range. The Selection.Range is always giving the address of the last cell we selected. But we need to

Office (esp. Outlook) addins [closed]

烂漫一生 提交于 2019-12-11 17:58:45
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . We want to develop addins for outlook, word and excel. As of now I am aware of 2 types of solutions. One to go for Shared Add-in (COM based) and other to build VSTO based Add-in. As I am new to this, which would be the better option? (Or if there is 3rd way,please let me know

How to search for a particular text in the word file and Pro-grammatically change it using Word interop?

五迷三道 提交于 2019-12-11 17:55:25
问题 I need to find range of the word document starting from particular text and ends with particular text then I want to edit this range in particular format. e.g In my code I have a Table in the document whose header starts with text {TN} and Table ends with hidden text {OAEndontribution}. I want to replace text {TN} with table number and when it finds text {OAEndontribution} then it should increment table number when it finds next {TN} and this should continue. Currently I am using Word.Range

Calling an Excel Add-In method from C# application or vice versa

萝らか妹 提交于 2019-12-11 16:46:09
问题 I have an Excel VBA add-in with a public method in a bas file. This method currently creates a VB6 COM object, which exists in a running VB6 exe/vbp. The VB6 app loads in data and then the Excel add-in method can call methods on the VB6 COM object to load the data into an existing Excel xls. This is all currently working. We have since converted our VB6 app to C#. My question is: What is the best/easiest way to mimic this behavior with the C#/.NET app? I'm thinking I may not be able to pull

Change Inbox-icons in Outlook at runtime

泪湿孤枕 提交于 2019-12-11 16:18:35
问题 I have a problem in my Outlook Addin. My AddIn processes the incoming mails and validates different headers etc. I want to check if a specific headers is set and then change the Icon of this mail in my inbox folder. Is this possible? 回答1: You can either change the icon to a couple dozen or so predefined icons used by Outlook itself (e.g. when it shows that a message was replied to/forwarded) by modifying the PR_ICON_INDEX MAPI property (DASL name http://schemas.microsoft.com/mapi/proptag