why doesnt my VSTO SE addin work?

D

DrRocket

Hi,
I'm new to writing managed code for excel and i'm already really
frustrated with it. No matter what I do I can't seem to get my code
to run. Whenever I hit F5 to run the code it opens up an excel
application and nothing else happens. My code window says its running
and I can't make any changes to it until I close out of excel. In this
addin I've created a really simple form and all i'm trying to do is
make the form show up and once excel pops up nothing happens. Can
someone please tell me what in the world I'm doing wrong? Thanks.

public class ThisAddIn

Private Sub ThisAddIn_Startup(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Startup
Dim frmApFeeTracker As APFeeTracker

Me.Application =
CType(Microsoft.Office.Tools.Excel.ExcelLocale1033Proxy.Wrap(GetType(Excel.Application),
Me.Application), Excel.Application)

frmApFeeTracker = New APFeeTracker
frmApFeeTracker.Show()

End Sub

Private Sub ThisAddIn_Shutdown(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Shutdown

End Sub

End class
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top