F
fasuser
When I try to insert database and select a comma separted file, it inserts
file in table format. But if I record all the steps for above action and try
to run that macro, it is giving me following error:
This operation cannot be completed because of dialog or database engine
failures. Please try again later.
Run-time error '5922':
Word was unable to open the data source.
The code that is giving error is :
With Selection
.Collapse Direction:=wdCollapseEnd
.Range.InsertDatabase _
Style:=0, _
LinkToSource:=False, Connection:="Entire Spreadsheet", _
DataSource:="file.dat"
End With
Any Help,
Thanks,
PS: Above macro works fine with MS Word 2000.
file in table format. But if I record all the steps for above action and try
to run that macro, it is giving me following error:
This operation cannot be completed because of dialog or database engine
failures. Please try again later.
Run-time error '5922':
Word was unable to open the data source.
The code that is giving error is :
With Selection
.Collapse Direction:=wdCollapseEnd
.Range.InsertDatabase _
Style:=0, _
LinkToSource:=False, Connection:="Entire Spreadsheet", _
DataSource:="file.dat"
End With
Any Help,
Thanks,
PS: Above macro works fine with MS Word 2000.