add-in

Remove AddIn path from UDF in Excel formula

痞子三分冷 提交于 2019-11-29 14:55:57
My addin was xla, now I use excelDNA, so it becomes xll, When I open spreadsheet built in previous version of My addin, for the UDF, it shows myUDF with path of xla. e.g "C:\Program Files\Installation folder\MyUDFs.xla!MyUDF", when I click Edit link and change source to "C:...\MyUDFs.xll" I got a pop up which says "Excel cannot update one or more links in this workbook. To update the links, open all the link source files(click Edit Links on the Data tab). To be sure all calculations are updated. press F9" I click OK, then the path of MyUDF changes from xla to xll, e.g. C:\Program Files

Get the excel cell address from a UDF

心已入冬 提交于 2019-11-29 11:52:22
I have created an Automation Add-in for Excel,implemented as a c# class library, which contains a UDF wrapper.(I do not use VSTO) The UDF looks like this: string foo(string data){ //Do some work on the data passed string result; return(result); } Is there a way for me to implicitly obtain the address of the cell where this formula was entered, without passing any additional parameters? One way would be to hook an event listener to the workbook,as soon as the add-in loads, and capture the events as the cells' value change; But I am looking for an alternative to that. Thanks, you can try Globals

VS addin: View markup. Does exist something like that?

放肆的年华 提交于 2019-11-29 11:18:58
While working with ASP.NET using Visual Studio (2008) I have discomfort issue: source code editor context menu has only item ' View Designer ' but nothing about to view markup quickly! To see it you need to open Designer and click Markup label in the bottom of a window. Or use Shift+F7 hot key (by default). So I want to add an item menu ' View Markup ' in additional to ' View Designer '. I guess I have to use a Visual Studio add-in if it already exists or write it by myself. What do you think about that? Is it possible? Or is some solution already exists? Eugene Baranovsky Tools > Options >

Find the last used row in Excel with C# [duplicate]

穿精又带淫゛_ 提交于 2019-11-29 10:25:23
Possible Duplicate: How to get the range of occupied cells in excel sheet Im trying to find the last used row in an Excel worksheet. For doing this, I'm using this code: int lastUsedRow = currentWS.Cells.SpecialCells(Excel.XlCellType.xlCellTypeLastCell,Type.Missing).Row; Most of the time it works fine, but sometimes Excel thinks that there's more rows in the sheet than theres suppose to be. Fx: If I copy data from sheet1, containing 12 rows, to an empty sheet2, then deleting all data in sheet2, by right clicking and press "Delete..." and copy data from sheet3, containing 5 rows, to sheet2,

How can I debug MonoDevelop add-ins with MonoDevelop?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 10:06:17
问题 The topic says it all. I cannot find any information on the monodevelop site or through google. Even adding System.Diagnostics.Debugger.Break() and running with mono --debug MonoDevelop.exe doesn't seem to do anything.. 回答1: mono --debug doesn't have anything to do with the debugger, it simply causes Mono to track debug information so it can give you file/line/col information in backtraces. The behaviour of System.Diagnostics.Debugger.Break() depends on your Mono version. AFAIK in its basic

Using 32bit COM addin under MS Office 64 bit

橙三吉。 提交于 2019-11-29 08:13:00
I am struggling to apply an existing 32bit COM addin to 64bit Microsoft Word 2010. To make the addin visible to Word, I have used the dllsurrogate-method, as it described here . The problem is that now addin caused some strange exception when tries to add its toolbar and menu to office's. I cannot figure out, what it is, it seems, that the command bar reference became not valid in unpredicable moments. Can anyone explain this? Note, that everething is fine when I use the same addin under 32bit Microsoft Word 2010 and more old versions of Ms Office. 32-bit add-ins are not supported on 64-bit.

How to place a control over the task bar in windows using c#

笑着哭i 提交于 2019-11-29 07:29:00
i googled a lot and found out some info about the band object from which we can make the ad-in for the task bar, can i get some more tutorials from scratch & some sample programmes. is there any other alternative way is there to place a control over the windows task bar apart from band objects? Thanks in advance If you want to place a textbox in the taskbar like the Google Desktop search bar, then you're not actually trying to place the control over the taskbar, you want to place it within the taskbar. The proper solution here is a Desk Band . You can find an MSDN article explaining those here

search for a value in an object at runtime [QuickWatch enhancement]

巧了我就是萌 提交于 2019-11-29 06:30:30
sometimes I waste my time searching for a value in an object at runtime. Certainly you-all know this task --> open the QuickWatch view and browse through the properties until you find what you're looking for. I'm looking for a tool/add-in/extension where it is possible to search for a value in object. The QuickWatch view with a search enhancement would be perferct :) sb. knows a tool? Thanks! Actually, I wrote a commercial extension to Visual Studio (called "OzCode" ) that does exactly what you're asking for - it's a "QuickWatch view with a search enhancement", as it replaces Visual Studio's

How to get notification when a successful build has finished?

风流意气都作罢 提交于 2019-11-29 03:57:31
I'm writing an VS add-in and I need to run a certain method after a successful build. I've tried using dte.Events.BuildEvents.OnBuildDone but that event happens even if the build failed. Is there a property or some other event I should use? The OnBuildDone event cannot tell you what happened. Some projects in the solution might have built properly, some didn't. You'll need OnBuildProjConfigDone instead. Fires for each project, the Success argument tells you if it worked. Typically, you need to handle multiple projects being built. This could be a solution build, or building a project that is

Visual Studio window manager

假装没事ソ 提交于 2019-11-29 02:41:20
Is there a window manager for Visual Studio 2008 like this one . I really liked it, and that's all I used in Visual Studio 2005 and saw somewhere it is supposed to work in Visual Studio 2008, but it doesn't. I have tried it on many installations of Visual Studio 2008, and it doesn't remember any settings. I really liked being able to easily change window layout quickly. Right now I just manually import and export settings, but it's not an instant process. What do I have to do to make it work? Brian Schmitt You can check out my blog post, Save and Change Tool Layout in Visual Studio , which