I'm new to the exchange and this is my first time posting. I just posted the same questions and then awarded points! So, I'm trying again.
I am attempting to create an excel spreadsheet on a vb form using a button. I believe I have the references and import statements correct. However, it throws the error "System.Security.Permissions.SecurityPermission" when it attempts to execute the first line of code "Dim ex As New Excel.Application".
I have tried to correct it by reading other posts but am lost when it comes to assemblies and changing them.
Any help would be appreciated.