PC Review


Reply
Thread Tools Rate Thread

cells that are outside the range of cells defined in

 
 
Arnie
Guest
Posts: n/a
 
      26th Mar 2009
hi guys and gals,
i posted this question in the Access forum but no answers i am trying to
read in several excel workbooks into Access which seems to be working
however,
one file i have tried to read in i get this

This table contains cells that are outside the range of cells defined in
this spreadsheet. (Error 3673)

i suspect i could define usable cells in the spreadsheet before it is read
in just in case there is a problem. the cells in question are A1:P7 (they do
not always have data in but sometimes they do ) but i don't know
how to do it.

to get the data into Access i use

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "tblTemp",
strFile, , "Calls!K2:K2"

the previous code for "Calls!J2:J2" works fine as there is data in that cell
if there is no data in the UsedRange that is not a problem as i use Variant
to account for Nulls

hope i have explained this ok


many thanks in advance

Arnie

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
change colors in a range of excel cells based on another range of cells Bobbi Muck Microsoft Excel Programming 1 9th Apr 2010 03:47 AM
import a picture into a pre defined range of cells - excel 2003 Tog Microsoft Excel Misc 1 16th Feb 2010 12:24 AM
Copying A Range of Cells From one Sheet to Another - Error Application Defined or Object Defined Matt Microsoft Excel Programming 3 25th Jul 2006 01:13 AM
User-Defined Function to Determine Content of Cells in a Range RBohannon Microsoft Excel Discussion 2 2nd Jun 2005 04:59 PM
Defining a Moving Printing Range using Defined Cells Kyle Microsoft Excel Worksheet Functions 0 1st Jul 2003 11:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:03 AM.