+ Reply to Thread
Results 1 to 3 of 3

executing macro causes excel to open the workbook that the macro is associated with

  1. #1
    Registered User
    Join Date
    01-21-2015
    Location
    California, USA
    MS-Off Ver
    2013
    Posts
    35

    executing macro causes excel to open the workbook that the macro is associated with

    Hello all, I made a macro and added a shortcut to it on my quick access toolbar. Every time I execute the macro though (in a new workbook), it opens the original workbook/file that I saved the macro in. Is there a way to prevent this?

  2. #2
    Forum Contributor
    Join Date
    06-09-2011
    Location
    Germany
    MS-Off Ver
    Excel 2016
    Posts
    194

    Re: executing macro causes excel to open the workbook that the macro is associated with

    Maybe you should save the macro in your personal.xlsb file rather than within some other file. The personal.xlsb is designed to be opened "invisbible".
    You might want to follow Rons instruction:
    http://www.rondebruin.nl/win/personal.htm

    Theo
    Remember To Do the Following....
    1. Upload sample files
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.

  3. #3
    Registered User
    Join Date
    01-21-2015
    Location
    California, USA
    MS-Off Ver
    2013
    Posts
    35

    Re: executing macro causes excel to open the workbook that the macro is associated with

    Thanks for the adivce, will try it!

+ 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. Macro to open a closed workbook and select copy cells into an open workbook
    By helloganesh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2013, 02:00 PM
  2. [SOLVED] Macro stops executing if another workbook is open
    By 4evra in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2013, 12:32 PM
  3. having trouble in executing macro from other workbook
    By anshulbansal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2008, 10:12 AM
  4. Executing a macro in a closed workbook
    By Alex in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2005, 11:05 AM
  5. Problem executing a macro from different workbook where it is
    By Sergio Calleja in forum Excel General
    Replies: 1
    Last Post: 01-17-2005, 09:06 AM

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