Link to home
Start Free TrialLog in
Avatar of Jean-Christophe GALLAND
Jean-Christophe GALLANDFlag for France

asked on

VBA code to import excel table in Access

Hi! For my Access database, I am looking for a VBA code that would:
- Open a windows dialog box and let the user select an excel file
- create an empty table called "Import"
- copy the content of the columns of the excel file into the column of the access "Import" table.
Blank cells do not need to be imported, only the filled ones.
Thanks!
Avatar of Jean-Christophe GALLAND
Jean-Christophe GALLAND
Flag of France image

ASKER

Sorry, to make it clear, the Access table must be a duplicate of the excel table ie have the same number of columns with the same data in the cells.
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Looks Great! The only thing is when I import your form in my own database, it opens in full page and not like a popup window (as it does in your sample db). How can it make it look the same?
Thanks
set the popup property to  yes
Great, as always...
Your code works, fine, but what is the reason when we are importing to a DB, the table has first line blank.