Results 1 to 2 of 2
  1. #1
    djrickel is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Feb 2014
    Posts
    21

    Macro runs query that exports to Excel, now how to open additional Excel Workbooks?

    A macro behind a button runs a query that exports a few fields to Excel that are then linked to a couple of monster Workbooks. The button works fine but I cannot figure out how to ALSO do the following at the same time...



    I need :
    1) to suppress the message that says the Excel file already exists (which it does but I just want it overriden each time)
    2) to prevent the same Excel file from automatically opening.
    3) to automatically open the two monster Excel Workbooks linked to the exported data. Call them Plan1 and Plan2.

    Thank you.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    The answer to all three questions is to use VBA. Although, I am not quite sure why you want to open a workbook that is linked to Access.

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

Similar Threads

  1. Replies: 22
    Last Post: 12-29-2015, 10:41 PM
  2. Replies: 3
    Last Post: 03-06-2014, 03:53 PM
  3. Replies: 1
    Last Post: 01-09-2013, 04:11 PM
  4. Replies: 12
    Last Post: 12-17-2012, 12:47 PM
  5. Problem with Query exports to Excel
    By nokeefe in forum Access
    Replies: 9
    Last Post: 12-07-2011, 12:50 AM

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