+ Reply to Thread
Results 1 to 2 of 2

How tu run a Access macro from Excel (without opening Access in the foregroun if possible)

  1. #1
    Registered User
    Join Date
    02-20-2014
    Location
    Germany
    MS-Off Ver
    Excel 2013
    Posts
    36

    How tu run a Access macro from Excel (without opening Access in the foregroun if possible)

    Hello,

    Before importing data from Access to Excel, I'd like to update a table in Access with a macro already existing in my database.

    Is it possible to run it from my Excel file? Something like:

    Please Login or Register  to view this content.

    Thanks.

  2. #2
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: How tu run a Access macro from Excel (without opening Access in the foregroun if possi

    Try replacing the values for

    MacroNameString = "MyMac"
    strDatabasePath = "H:\Database1.accdb"


    Please Login or Register  to view this content.
    OR

    Please Login or Register  to view this content.
    Regards
    Parth

    I appreciate your feedback. Hit * if u Like.
    Rules - http://www.excelforum.com/forum-rule...rum-rules.html

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Use an Excel Macro in Access VBA - Import text file in Access Table
    By joogibabu in forum Access Tables & Databases
    Replies: 3
    Last Post: 10-08-2014, 10:04 AM
  2. [SOLVED] Trigger macro by opening access
    By Lloyd Blankfein in forum Access Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2013, 12:52 PM
  3. Opening Excel from Access, running Code in Excel then export back to Access
    By JungleJme in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-28-2012, 08:49 AM
  4. Running an Access macro via Excel on a shared Access db
    By koltregaskes in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-07-2011, 10:22 AM
  5. opening access database using macro
    By rtphilips in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-20-2005, 01:05 PM

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