Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have some code in a Word VBA project module that I scratched together from
Google searches that I use to import data from an Excel spreadsheet into a Word userform. One line of the code reads: Set db = OpenDatabase(ThisDocument.Path & "\" & "SourceData.xls", False, False, "Excel 8.0; IMEX=1;") In an attempt to understand exaclty what that line of code means, I looked up OpenDataBase in Excel help and the following was returned. Sub UseOpenDatabase() ' Open the Northwind database in the background and create a PivotTable Workbooks.OpenDatabase Filename:="c:\Northwind.mdb", _ CommandText:="Orders", _ CommandType:=xlCmdTable, _ BackgroundQuery:=True, _ ImportDataAs:=xlPivotTableReport End Sub The two don't appear to have a lot in common :-( I understand the "FileName" piece. Can someone please explain what "False," "False" and "Excel 8.0; IMEX=1;" in my line of code means? What would be the result in one of the "Falses" were changed to true? What are some of the other values that IMEX can take. What do they mean. Thanks. -- Greg Maxey - Word MVP My web site http://gregmaxey.mvps.org Word MVP web site http://word.mvps.org |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Any macro programming sample for accessing database through Excel? | Excel Programming | |||
Accessing oracle database through excel cell | Excel Discussion (Misc queries) | |||
Accessing Word Constants from Excel | Excel Programming | |||
Accessing Word constants in Excel | Excel Programming | |||
Accessing Word from Excel | Excel Programming |