Import Filtered Excel Data Into Access

Navron

New Member
Joined
Nov 20, 2014
Messages
5
I am trying to import a filtered excel sheet into access. However, whenever I execute the command, the entire table is imported instead of the filtered results only. The command is:
Code:
DoCmd.TransferSpreadsheet acImport, 10, "Table1", CurrentProject.Path & "\" & "Reports.xlsm", True, "Sheet1!a1:F360"
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Access doesn't "see" filtered range. You need to copy the filtered cells somewhere and refer to them.
 
Upvote 0
The thing is, the filtered range is dynamic. As such, the filtered values re continuously changing.
 
Upvote 0
Ultimately, someone filters a range. If he filters, then he can also save the result of filtering somewhere. Then it'd be possible to refer to this result.
 
Upvote 0
You are not understanding what I cam saying. I am saying that the filtering will be done automatically using a macro> I need the copying to be done automatically as well. However, the values are dynamic. As such, I cannot just use a recorded macro.
 
Upvote 0

Forum statistics

Threads
1,216,052
Messages
6,128,509
Members
449,455
Latest member
jesski

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