Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi guys,
I am writing a program to import data from a excel file using a MS Visual Basic 6.0. I am using "Microsoft.Jet.OLEDB.4.0" as the provider. While I am reading the excel file I am getting null values for some fields which is not null in the excel file. Can any one help me to resolve this please. Thanks, -Aruna |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Why not set a ref to the excel obj library the just open
the workbook ? That way you can manipulate the worksheet object etc etc dim xl as excel.application dim wb as excel.workbook dim ws as excel.worksheet dim cell as excel.range set xl = new excel.application set wb = xl.workbooks.open(ThisWorkbook) set ws = wb.activesheet ....do something with the sheet.. for each cell in ws.Range("C3:K12") ...blah Next ... ... wb.close false ' close the book without saving xl.quit set ws = nothing set wb = nothing set cell = nothing set xl = nothing HTH Patrick Molloy Microsoft Excel MVP -----Original Message----- Hi guys, I am writing a program to import data from a excel file using a MS Visual Basic 6.0. I am using "Microsoft.Jet.OLEDB.4.0" as the provider. While I am reading the excel file I am getting null values for some fields which is not null in the excel file. Can any one help me to resolve this please. Thanks, -Aruna . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel reading pasted values as Scientific Notation | Excel Discussion (Misc queries) | |||
How do I find and replace null values in Excel 2002 worksheets? | Excel Worksheet Functions | |||
CSV export from Excel always recognise null values in the last col | Excel Discussion (Misc queries) | |||
Reading an excel file in SPSS | Excel Programming | |||
Reading an Excel file after upload | Excel Programming |