+ Reply to Thread
Results 1 to 2 of 2

Thread: Macro's in Excel and Access

  1. #1
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Oxford
    MS-Off Ver
    Excel 2003, 2007 and 2010
    Posts
    120

    Question Macro's in Excel and Access

    Hi All,

    Can You Use a Macro in Excel, (Eg a Command Button), To then Run a Macro In Access?

    If so, how would you go about Codeing it?

    Thanks

    Tom
    Last edited by t0m46; 02-17-2010 at 08:51 AM.

  2. #2
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Oxford
    MS-Off Ver
    Excel 2003, 2007 and 2010
    Posts
    120

    Re: Macro's in Excel and Access

    Hi All

    Managed to Figure out the Code. Here it is if anyone was interested.

    Sub EXCELL_access ()
    
    Set appAccess = CreateObject("Access.Application")
    
    appAccess.OpenCurrentDatabase "Database1.mbd"
    
    appAccess.DoCmd.RunMacro "Macro1",
    
    appAccess.Quit
    
    Set appAccess = Nothing
    
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0