+ Reply to Thread
Results 1 to 3 of 3

Transfering table in different excel files(not worksheets)

Hybrid View

  1. #1
    Registered User
    Join Date
    07-15-2009
    Location
    Rockford, IL
    MS-Off Ver
    Excel 2003
    Posts
    38

    Transfering table in different excel files(not worksheets)

    Hi,
    This is a prototype table in access that I want to export to excel.

    salesid businesschannel custid amt
    001 A XXX 2000
    001 A YYY 3000

    002 A TTT 5000
    002 A KKK 1000

    Based on the above table I need to export to excel. This part is fine.
    However,
    I need to export to two spreadsheets corresponding to each sales person.

    The first spreadsheet will look like the following:
    salesid businesschannel custid amt
    001 A XXX 2000
    001 A YYY 3000
    and the file name for excel will be 001_A.xls where 001 is the salesid and
    A is the businesschannel.

    Similarly the other spreadsheet will be as following:
    salesid businesschannel custid amt

    002 A TTT 5000
    002 A KKK 1000

    and the file name for the excel will be 002_A.xls with the same meaning. I
    need to have this through loop so that this applies to more than 50 sales
    person.


    The whole transfer process including creation of files need to be done by click of a button.

    I am new in excel. I appreciate any help for resolution of this issue. Thanks.
    Last edited by gamaz; 07-31-2009 at 10:22 AM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Transfering table in different excel files(not worksheets)

    Hello gamaz,

    I think you got lost in the details.

    Do this mean you have code written to export the table?
    Based on the above table I need to export to excel. This part is fine.
    Will there be a single workbook with 100+ sheets?
    I need to export to two spreadsheets corresponding to each sales person.
    I need to have this through loop so that this applies to more than 50 sales
    person.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    07-15-2009
    Location
    Rockford, IL
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: Transfering table in different excel files(not worksheets)

    Thanks for yor help. I appreciate it.
    I need to export data for each of salesid to one excel file. Thus in the case we have there are two sales person. Hence there should be two excel files. So the output is not one file but different files.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1