Results 1 to 1 of 1
  1. #1
    Join Date
    Feb 2011
    Posts
    1

    Question Calling Access VBA subroutine from an Excel VBA subroutine

    Hi



    Does anbody know how to do this?

    I've written a Sub bulk_import() routine in a module called Module1 in Access VBA.

    I'm using an Excel file (of about 20,000 rows and 50 columns) as the source of the data to import, and I have Excel VBA code (in Excel 2002) which performs various operations on the file.

    Now, essentially, when the Excel VBA code has finished running on the Excel file, I would like it to run the Access VBA code which basically just does a DoCmd.TransferSpreadheet acImport and hence does a bulk import of the Excel data.

    Is this possible?

    Thanks

    Richard
    Last edited by richard_yolland; 02-17-2011 at 01:42 AM. Reason: add in version of Excel

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Calling Excel from Access
    By Terry Lawson in forum Programming
    Replies: 2
    Last Post: 02-06-2011, 05:07 AM
  2. Calling Stored Proc in MS Access 2007 without creating query?
    By DistillingAccess in forum Programming
    Replies: 1
    Last Post: 08-03-2010, 09:38 AM
  3. Referencing a Subroutine
    By Lockrin in forum Programming
    Replies: 1
    Last Post: 02-26-2010, 10:09 AM
  4. Passing a form name to a subroutine
    By trb5016 in forum Programming
    Replies: 0
    Last Post: 02-01-2010, 12:03 PM
  5. Calling Query from different Access DB
    By Jerry8989 in forum Queries
    Replies: 4
    Last Post: 10-02-2009, 08:48 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums