vb.net - how to import data from excel vb using Microsoft.Office.Interop.Excel -


sorry bad english can export data excel file code

    imports excel = microsoft.office.interop.excel         dim xlapp new excel.application         dim xlworkbook excel.workbook         dim xlworksheet excel.worksheet             xlworkbook = xlapp.workbooks.open("my excel path")         xlworksheet = xlworkbook.sheets("sheet1")         xlworksheet            .range("d8").value = "1"            .range("d9").value = "2"         end         xlapp.visible = true 

i want import data(d8,d9) excel file text box .can u me? thank

i not sure want import data, should work , give value.

imports excel = microsoft.office.interop.excel dim xlapp new excel.application dim xlworkbook excel.workbook dim xlworksheet excel.worksheet      dim strone string     dim strtwo string      xlworkbook = xlapp.workbooks.open("my excel path") xlworksheet = xlworkbook.sheets("sheet1") xlworksheet    strone = .range("d8").value  'this give value of cell d8 in strone    strtwo = .range("d9").value  'this give value of cell d9 in strtwo end  msgbox strone msgbox strtwo  'your code continue... 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -