[Solved] vb.net late bindings issue even after setting the variable
note that you have to referance Microsoft.Office.Interop.Excel assembly: project>>add reference>> check Microsoft Excel x.xx Object Libary Imports Microsoft.Office.Interop Public Class Form1 Private exapp As Excel.Application Private xlwb As Excel.Workbook Private xlws As Excel.Worksheet Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load exapp = New Excel.Application xlwb = exapp.Workbooks.Add() xlws = xlwb.Worksheets.Add() xlws.Name = … Read more