import sheet from excel

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello everybody:

I am a beginner Access user and I am trying to build a macro to import a
specific sheet form a spreadsheet. I am using the following sintax:

File name: P:\XXXXX\YYYYYYYYYYY\File,worksheet

However I cannot run the macro.

I really appreciate your help !!

Edgar
 
Hi,
have a look at the docmd.transferspreadsheet method.
Try to adapt VBA. Macros are very very limited and cannot handle error
handling.
HTH
Good luck
 
quite easy

create a sub-sheet in Excel with the required data.
make sure the first row as the same fieldnames of your table in Access
Open Access and use IMPORT and follow the instructions.

success

Nanne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top