473,671 Members | 2,367 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HELP: Debugging VB.NET Excel Add-In

I wrote an Excel Add-In in VB.NET using Visual Studio .NET 2003 and the
..NET Framework version 1.1.4322 on my previous machine. This machine
had MS Office 10 installed on it. With this configuration I was able
to run Excel from the debugger, my add-in loads on startup in Excel,
and I could debug my add in.

I got a new machine. This machine has both .NET 1.14322 and .NET 2.0
installed on it and it has MS Office 11 installed. It also has VS.NET
2003. I copied over the add-in project and rebuilt it. Then I ran my
installer to install the debug version on the machine (just as I did on
the previous machine). When I run under the debugger, Excel starts up
and then exits immediately. If I try again Excel starts and gives this
error message:

"Excel experienced a serious error the last time the add-in '<myaddin>'
was opened. Would you like to disable this add-in? To reactivate this
add-in, click About Microsoft Office Excel on the Help menu, and then
click Disabled Items"

If I disable it, I can launch Excel from the debugger, but (of course)
my add-in is disabled and does nothing. If I don't disable it, Excel
continues to exit immediately when launched from the debugger.

If I launch Excel normally, it starts up fine and my add-in is loaded
and runs. But, I can' t debug.

How can I fix it so I can launch Excel from the debugger and debug my
add-in?

Any help is greatly appreciated.

Apr 25 '06 #1
0 1780

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2492
by: Rudy Ray Moore | last post by:
Anybody notice that while debugging, excel (and some other apps) have a "hard time" opening? Anybody know why this is? "hard time" - takes 20 seconds to open, low CPU usage. I'm using VC++ .net/2003/7.1, native code. Rudy
2
1252
by: Mike Fellows | last post by:
within my VB.net app I use Excel a lot, so far I have used Dim excel_app As Object excel_app = CreateObject("Excel.Application") excel_app.Workbooks.Add() and parsed through the spreadsheet adding the data I need to add. Now I need to be able to open a excel spreadsheet that already exsists I thought that the excel object would contain a open instance but it does not and now im stuck
1
2168
by: Steven | last post by:
Hello, I use the following code to make an Excel-file, which works fine with Excel 2003 (and the MS Excel 11.0 object library): Dim Excel As New Excel.Application Dim oBook As Excel.Workbook Dim WSheet As New Excel.Worksheet WSheet = Excel.Workbooks.Add.Worksheets.Add
2
6528
by: james | last post by:
Hi all, I am trying to convert some old VB6 code to .NET. Take this first section (there is more, but hey-ho...) Dim XLApp As Object Dim XLSheet Dim XLBook Dim HeaderItem As String Dim ColCount As Integer ColCount = 1 Set XLApp = CreateObject("EXCEL.Application")
4
3137
by: Melissa | last post by:
I currently have VBA written to export query results into an Excel file. That file is then formatted using the code below. The problem I'm having is that it keeps throwing Error 91 (Object variable or With block variable not set) at this part of the code: If xlWs.Range("A3") <"" Then xlWs.Range("A2").End(xlDown).Select l = Selection.Row Debug.Print "l = " & l ElseIf xlWs.Range("A2") <"" Then
1
2300
by: Panteras | last post by:
Hi I am trying to do the following using a vbscript: connect to a database using an odbc connection and return the results to an excel file. Here is the script: =============================== Option Explicit Dim objXL,objWB,objWS,objRange,objQryTable Dim strConnection,strFileName,strSQL,objQryT
4
1376
by: ALaurie10 | last post by:
Hi have code below that enables a user to browse for data and import spreadsheet data. I keep receiving error message 3134 syntax error for "INSERT INTO" statement. Could someone please help me out? see bold below Thanks Private Sub btnImportData_Click() Dim dlgPickFiles As Office.FileDialog Dim strFileName As String Set dlgPickFiles = Application.FileDialog(msoFileDialogFilePicker)
1
1533
by: Schizoid Man | last post by:
Hi, At work I have Visual Studio 2005, and I can debug my Excel add-ins by attaching to the Excel.exe process and it works like a charm. However at home I only have access to Visual C# Express 2005 Edition, which does not have any 'Attach To Process' functionality. How do I debug anything other than a console application with this edition of the compiler?
1
6683
by: DennisBetten | last post by:
First of all, I need to give some credit to Mahesh Chand for providing me with an excellent basis to export data to excel. What does this code do: As the title says, this code is capable of extracting all tables and it's data from any given database! I was searching the net for a program like this, but I didn't come accross any (free) versions. So I decided to write it myself. To get this code to work, you need to add a reference to...
1
1474
by: ISATownsME | last post by:
HELLO world, this is my first post and heres my problem. I have an excel spreadsheet with 22 columns, and undefined amount of rows. I need vb.net to read the data from excel. Then use that data to populate an existing access database table that has been added to visual studio. I've tried multiple approaches and have come to a standstill. this was approach 1 Imports System.Data.OleDb Imports System.Data.SqlClient Imports Excel =...
0
8909
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8596
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8667
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6222
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4221
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4399
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2806
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1801
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.