I need to create a windows form to be shown and accessible from Excel VBA. Sorry for a silly question, but I have just started .NET. Here are my steps:
1) Created a new Class Library project in Visual studio
2) Added a simple form with one button (attached)
3) Saved and built dll
4) tried to add a reference to a new VBA excel project by browsing and pointing to that dll. I am getting a message: "Cannot add a reference to specified file"
Please, correct what i am doing wrong here
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click