+ Reply to Thread
Results 1 to 3 of 3

VBA to update cells with data from Microsoft Access table

Hybrid View

drewship VBA to update cells with data... 06-30-2009, 12:45 PM
T-J Re: VBA to update cells with... 06-30-2009, 03:57 PM
drewship Re: VBA to update cells with... 07-01-2009, 07:31 AM
  1. #1
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    VBA to update cells with data from Microsoft Access table

    Hello all,
    I have a spreadsheet and an Access database that contain the same items and prices. The database and spreadsheet are on a server shared drive. I would like the spreadsheet to automatically update its list of items and prices from the Access database whenever the spreadsheet is opened. Right now, we update the item and price list on both the spreadsheet and the database but I want to just update the database and have the spreadsheet pull the updates from the database.

    Thanks in advance!!
    Andrew
    Last edited by drewship; 07-06-2009 at 07:20 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-26-2006
    Location
    -
    MS-Off Ver
    2010
    Posts
    388

    Re: VBA to update cells with data from Microsoft Access table

    This can be done without VBA.

    Data > Import External Data > New Database Query, choose MS Access Database and go through the Query wizard choosing tables and columns.
    Right-click the returned data and tick the option 'Refresh data on file open' in Data Range Properties. Et voilà!

  3. #3
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    Re: VBA to update cells with data from Microsoft Access table

    Thanks T-J!! I will give it a try and see if it works for my purpose.

    Andrew

+ 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