Create access button to search 4 excel worksheet that matches date & product in form?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Smore
    New Member
    • Dec 2010
    • 1

    #1

    Create access button to search 4 excel worksheet that matches date & product in form?

    Would like to create a button on a form to find an excel worksheet that has a matching product code and production date. The excel sheet may be in one of several workbooks in folders divided by month within yearly folder. Can anyone help? Thanks in advance. I am currently connecting the master folder from the form.
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32669

    #2
    Within Excel you can run a search across multiple sheets if they are all selected already. In code you simply need to run the search against a collection of sheets - done by passing an array of sheet names to ActiveWorkbook. Worksheets().

    Look in Application Automation for how to control an Excel session remotely (from Access for instance).

    Comment

    Working...