HI Jonathan,
By default, Access tries to import the UsedRange of the worksheet. This
is complicated to explain in detail but basically is the rectangle
enclosing all cells that contain or have ever contained formulas or
values, or had formats applied to them (though formatting an entire row
or column doesn't count).
Things you can do include:
- define a named range in the workbook covering the actual range you
want to import, then import the named range
- delete all rows below and columns to the right of the range you want
(they'll be replaced, of course, with new rows and columns that are
outside the UsedRange
- specify the actual range you want to import in the Range argument of
TransferSpreadsheet.
>I am trying to import an Excel spreadsheet that has a fixed number of columns,
>but unknown number of rows. For some reason importing it brings in all 256
[quoted text clipped - 8 lines]
>
>Jonathan Scott
--
John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.
Jonathan Scott - 14 Jul 2005 07:50 GMT
Thanks John, That fixed it.
Jonathan Scott
>HI Jonathan,
>
[quoted text clipped - 26 lines]
>
>Please respond in the newgroup and not by email.