EXCEL CODE

B

bteitelbaum

I have a code:

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "Test
Import Specification", mytxtbox, True, "Heffalump!"

This code takes excel spreadsheet, tab named Heffalump and puts ALL the
data in access table named Test Import Specification.

What I need is to specify the Range A:CS. I do not want to take all the
field.
What is the syntax? Range = A:CS.. Please answer with the correct code.


Please answer to (e-mail address removed)
 
J

John Nurick

Use
"Heffalump$A:CS"

I have a code:

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "Test
Import Specification", mytxtbox, True, "Heffalump!"

This code takes excel spreadsheet, tab named Heffalump and puts ALL the
data in access table named Test Import Specification.

What I need is to specify the Range A:CS. I do not want to take all the
field.
What is the syntax? Range = A:CS.. Please answer with the correct code.


Please answer to (e-mail address removed)
 

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

Top