+ Reply to Thread
Results 1 to 8 of 8

Populate values in Excel worksheet from Access table

  1. #1
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Populate values in Excel worksheet from Access table

    Hi All

    I want to write down the code that will populate values in "Sheet1" from the Access table. The column headers shows "Envelope types", "Envelope Size" fields from the Access table and each cell should store sum(volume) for each month in the table.

    As I can't upload access table in the attachment so I have exported data into Workbook named "tblmain" as attached. But in actual tblmain is Access table. So please consider it an access table.

    I hope anyone can help me in wrting code that will fetch data from access table and store in all the cells of the table in "Sheet1" of Elevate workbook.

    Thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor adyteo's Avatar
    Join Date
    01-10-2013
    Location
    Calgary
    MS-Off Ver
    Excel 2010
    Posts
    540

    Re: Populate values in Excel worksheet from Access table

    why don't you create a connection to Access database that will populate your table in sheet1?
    Click on the star if you think I helped you

  3. #3
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Re: Populate values in Excel worksheet from Access table

    Hi, I don't want to populate the whole table in sheet1. In actual I want to display the sum(volume) for each field of the table in the sheet1 cells.I know I need to create a connection with Access database. The below is the code for that but how to populate those values in the sheet1 cells.
    Please Login or Register  to view this content.
    please help me in this.

    Thanks

  4. #4
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Re: Populate values in Excel worksheet from Access table

    The following code is used to populate value in cell(4,"B")

    Please Login or Register  to view this content.
    But there are lots of cells where I want to populate values so if I close the recordset and open it again and so on , it will be very complicated. Is there any short way to do this.

    Thanks

  5. #5
    Valued Forum Contributor adyteo's Avatar
    Join Date
    01-10-2013
    Location
    Calgary
    MS-Off Ver
    Excel 2010
    Posts
    540

    Re: Populate values in Excel worksheet from Access table

    can you create a table in Access where you store all values you are interested in and then import them into excel?

  6. #6
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Re: Populate values in Excel worksheet from Access table

    Hi guys

    Can anyone please help me int his?

    Regards,
    Aman

  7. #7
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Re: Populate values in Excel worksheet from Access table

    Hi All

    The following code populates data for february month in the table. Then for the next months I need to write down the same lines of code but for different month. But is there any short way of doing it. Any help would be much appreciated.
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    03-30-2014
    Location
    Suzhou,China
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Populate values in Excel worksheet from Access table

    try this:
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. populate worksheets from a table in access
    By bdavis6290 in forum Access Tables & Databases
    Replies: 0
    Last Post: 03-06-2014, 11:04 AM
  2. Finiding max value in Access table and populate in Excel userform textbox
    By LisaPatch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2011, 05:44 AM
  3. Populate Access table with excel array
    By gnome_core in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-23-2009, 12:41 PM
  4. Populate ComboBox With Access Table
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-18-2008, 06:35 PM
  5. Using Excel Data to Populate an Access Table
    By chrismann85 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-27-2008, 04:27 PM

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