Results 1 to 3 of 3

Thread: Record per worksheet Access to Excel

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2004
    Location
    North east UK
    Posts
    129

    Record per worksheet Access to Excel

    Hi All,

    I am moving information from an Access query to an Excel worksheet. What I need is for each record from the query to be placed on a new worksheet within the workbook.

    Any help appreciated.

    dagoose

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950
    This might be dumb, I don't use Excel.
    Wouldn't code along these lines work? This is pseudo code.
    VB Code:
    1. For i = 0 to  Access recordset upperbound - 1
    2.    dim new excel worksheet
    3.    put in recordset info
    4. Next
    Anyway, make a loop that creates a new excel worksheet and put the info in. Maybe a While type loop would be better.
    Just as a place to start. Not sure what the limit is to the number of Excel worksheets, you may want to add a check for that.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2004
    Location
    North east UK
    Posts
    129
    many thanks'

    will give it a go. I haven't done that much with excel (vb6 normally) so I was unsure if I was approaching the problem in the correct way.

    Cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width