Results 1 to 3 of 3
  1. #1
    Terry Lawson is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2011
    Posts
    23

    Calling Excel from Access

    All

    I would like to run an Excel macro from within the code behind an Access form.



    Pls can some one point me in the right direction.

    Regards

    Terry Lawson

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    '* method for opening the Excel file ...
    '
    '* if excel is running use it
    '* if excel is NOT running, create an instance

    If IsExcelRunning() Then
    Set xlApp = GetObject(, "Excel.Application")
    Else
    Do
    Set xlApp = CreateObject("Excel.Application")
    Loop Until IsExcelRunning()
    End If


    Look here for more/other info
    http://www.pcreview.co.uk/forums/det...-t1642105.html

  3. #3
    Terry Lawson is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2011
    Posts
    23
    Thanks for that.

    It's always easy when you know how!

    Regards

    Terry Lawson

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

Similar Threads

  1. 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
  2. calling function
    By ManvinderKaur in forum Programming
    Replies: 3
    Last Post: 07-22-2010, 10:53 PM
  3. Calling Query from different Access DB
    By Jerry8989 in forum Queries
    Replies: 4
    Last Post: 10-02-2009, 08:48 AM
  4. Replies: 1
    Last Post: 08-31-2009, 10:24 AM
  5. Calling a function and returning a value
    By 3dmgirl in forum Programming
    Replies: 0
    Last Post: 04-23-2007, 02:20 PM

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