Importing only 3 columns of .xls

leeloo0505

Board Regular
Joined
Mar 28, 2003
Messages
130
Hello,

I am writing a macro in Access 2000 on XP Pro (not VBA) and I am having trouble specifying the range to import.
I got everything working but I only want three columns, A, B, and C not all. In Access, when setting up the macro with TransferSpreadsheet as the Action, the last cell is Range: I have tried entering all kinds of ways like
A:A, B:B, C:C or A:A; B:B; C:C and it comes back with an error saying 'unable to find object'. I have tried A:A and that works so I know I am on the right track??

Thanks,
leeloo
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Actually sorry, this will make a difference.. I need column A, B and D not C. A:D will work but just trying to avoid the column C if anyone knows what Access is looking for.

leeloo
 
Upvote 0

Forum statistics

Threads
1,221,816
Messages
6,162,148
Members
451,746
Latest member
samwalrus

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top