G
geographer
I am trying to do something that I think should be fairly easy, but I am not
able to accomplish it. I am trying to open two dbase files in one workbook.
The first one opens up just fine and adds a new worksheet for the next dbase
file to go to. But the second dbase file opens up into a new workbook of its
own.
i have about ten dbase files output from ArcView GIS that I wanted to open
into one Excel workbook for analytical purposes.
Here is my code:
Public Sub OpenDBF()
'The next two lines open listings.dbf and add a new sheet. It works fine.
Workbooks.Open Filename:="c:\temp\listings.dbf"
Worksheets.Add
'this next line opens a new workbook and opens housing.dbf.
'I want both dbase files in one workbook. But it opens a new workbook
instead of putting it into one singular workbook with "listings.dbf"
Workbooks.Open Filename:="c:\temp\housing.dbf"
End Sub
Please help
Thanks
able to accomplish it. I am trying to open two dbase files in one workbook.
The first one opens up just fine and adds a new worksheet for the next dbase
file to go to. But the second dbase file opens up into a new workbook of its
own.
i have about ten dbase files output from ArcView GIS that I wanted to open
into one Excel workbook for analytical purposes.
Here is my code:
Public Sub OpenDBF()
'The next two lines open listings.dbf and add a new sheet. It works fine.
Workbooks.Open Filename:="c:\temp\listings.dbf"
Worksheets.Add
'this next line opens a new workbook and opens housing.dbf.
'I want both dbase files in one workbook. But it opens a new workbook
instead of putting it into one singular workbook with "listings.dbf"
Workbooks.Open Filename:="c:\temp\housing.dbf"
End Sub
Please help
Thanks