filepath error when trying to transfer spreadsheet into access (1 Viewer)

virencm

Registered User.
Local time
Today, 13:04
Joined
Nov 13, 2009
Messages
61
Hi

I have created a macro that will transfer an excel file data into an access table.
the problem i am facing is that i want to specify the worksheet i want to transfer.
in the macro window the file path i specify is C:\My Documents\[consume.xls]sheet 2 and it gives me an error. can i not specify the worksheet here? or do i have to do it via VBA?

Thanks
viren
 

DCrake

Remembered
Local time
Today, 04:04
Joined
Jun 8, 2005
Messages
8,632
What error is it throwing up?I suspect it may be to do with the [] characters in the file name.
 

boblarson

Smeghead
Local time
Yesterday, 20:04
Joined
Jan 12, 2001
Messages
32,059
There should be a Range argument in the TransferSpreadsheet macro action. It doesn't go in the file name argument.
 

Users who are viewing this thread

Top Bottom