Downloading Access database table into Excel (VB)

S

Steve

I don't have any familiarity with Access databases but have one that I need
to download and manipulate in Excel using Macros or VB within excel. Can
somone please help me with Excel VB code that will export a table from Access
to Excel.
Database name = Pressing.mdb (2000 file format)
Table name = Used Felt
Columns= "Mill Code", "Machine" and "Position" etc.
Thanks a bunch
Steve
 
S

Steve

Hi Sheeloo
I get a "Compile Error"
"User-defined type not defined" on the first Dim statement for cnt
 
S

Steve

Ron
I appreciate the help! I will work with your download example and try to
understand the logic but it look like it will do the trick. Again, thanks a
lot.
Steve
 
S

Steve

Sheeloo
Thanks for help but I have a question re "wsBlad" in your code. What is this?
For lnCount = 0 To lnNumberOfField - 1
wsBlad.Cells(1, lnCount + 1).Value = rst.Fields(lnCount).Name
Next lnCount
Thanks again
Steve
 

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