P
Paula
Imports Microsoft.Office.Interop.Excel
Public Class TransferTool
Private Sub btn_PrevData_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btn_PrevData.Click
Dim wkbk As New Microsoft.Office.Interop.Excel.Workbook
wkbk.Open(Me.txt_ImportFile.Text)
strWrkBkNm = wkbk.Item(1).Name
wkbk.Close()
wkbk = Nothing
Gives an unspecified error, does anyone know why this will not run? Do I
need to install something?
Thanks,
Paula
Public Class TransferTool
Private Sub btn_PrevData_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btn_PrevData.Click
Dim wkbk As New Microsoft.Office.Interop.Excel.Workbook
wkbk.Open(Me.txt_ImportFile.Text)
strWrkBkNm = wkbk.Item(1).Name
wkbk.Close()
wkbk = Nothing
Gives an unspecified error, does anyone know why this will not run? Do I
need to install something?
Thanks,
Paula