R
ravindra0506
Guest
sir i have visual basic 2013 and microsoft office 2016 when i try to open an excel file using visual basic code it does not open but gives following error {"Sorry, we couldn't find C:\Users\R.K\Desktop\rbk.xlsx. Is it possible it was moved, renamed or deleted?"}
kindly help me to resolve this issue and my code is
Imports excel = Microsoft.Office.Interop.Excel
Imports Microsoft.Office
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim xls As excel.Application
Dim workbook As excel.Workbook
xls = New excel.Application
workbook = xls.Workbooks.Open("C:\Users\R.K\Desktop\rbk.xlsx")
xls.Visible = True
End Sub
End Class
Continue reading...
kindly help me to resolve this issue and my code is
Imports excel = Microsoft.Office.Interop.Excel
Imports Microsoft.Office
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim xls As excel.Application
Dim workbook As excel.Workbook
xls = New excel.Application
workbook = xls.Workbooks.Open("C:\Users\R.K\Desktop\rbk.xlsx")
xls.Visible = True
End Sub
End Class
Continue reading...