+ Reply to Thread
Results 1 to 3 of 3

How can I open several files without clicking "Disable Macros" or other button each time?

  1. #1
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    How can I open several files without clicking "Disable Macros" or other button each time?

    Hoping the get a tip from the forum members . . .

    I have several similar registration files from many gymnastic clubs and want to open each one as read-only in order to copy the list of entrants into a master file. Most of this is working but as each file is opened, there is a dialog saying the file has macros and three buttons: 'Enable Macros', 'Do Not Open', and 'Disable Macros', the last being the default.

    Is there a simple way to skip this dialog in the opening sequence of each file and have the "Disable Macros" automatically selected. That would make my program much more automatic so the user need not press 'return' or 'enter' for each file in order to open it. Maybe there's an option in the OPEN statement?

    This is what I use now: (The colon is for Mac OS.)
    Please Login or Register  to view this content.
    - Stu
    If this has been helpful, please click on the star at the left.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: How can I open several files without clicking "Disable Macros" or other button each ti

    I'm not sure if this works for Excel on Mac but you could change the Macro Settings in the Trust Center of the Excel Options menu.
    You select Disable all macros without notification.
    But for a VBA solution see this answer on MrExcel web site
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    Re: How can I open several files without clicking "Disable Macros" or other button each ti

    Thank you Pierre L

    I found a similar option in the Mac version.
    I will include a note about this in the user's guide for the program.

    Merry Xmas.
    - Stu

+ 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. programming code in macro "to find other excel" by clicking a button
    By sanjeev devaliya in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 05-25-2013, 12:11 PM
  2. Simultaniously Save when clicking "Add" button in VBA form
    By traceylreed in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-06-2012, 09:49 AM
  3. Open files from FTP server (works with "servername" but doesn't work with "ip address")
    By adammsu1983 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2012, 04:30 PM
  4. VBA gives "400" error when clicking on a button to run a macro
    By Kaigi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-13-2009, 02:52 PM
  5. How to change a Command Button caption from "Enable" to "Disable"?
    By Infinity in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2007, 12:14 AM
  6. [SOLVED] "Enable, Disable macros" window does not pop up, security is medi
    By Miguel Montes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2006, 09:05 AM
  7. Get rid of "Copy of..." folders in my "Open Files" box?
    By TOMinTEX in forum Excel General
    Replies: 0
    Last Post: 07-16-2006, 02:20 PM
  8. [SOLVED] Suppress "Disable/Enable Macros" and Query Refresh dialog on open
    By Sharon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-18-2006, 05:25 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