+ Reply to Thread
Results 1 to 5 of 5

can't find file with macro in current subdirectory

  1. #1
    Forum Contributor
    Join Date
    03-31-2017
    Location
    usa
    MS-Off Ver
    2013
    Posts
    104

    can't find file with macro in current subdirectory

    I am trying to run macros in three files from a main file. I get an error that says it can't find the files I am trying to run the macros in, even though they are clearly there and the path is correct. when I try to open the files manually I get the MS security warning about the file containing macros and how they may be harmful. in manual mode I just hit the enable macro button. is there a way to emulate this in code so it can open the file and run the macro from the main file?

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: can't find file with macro in current subdirectory

    It might help if you showed your code.

  3. #3
    Forum Contributor
    Join Date
    03-31-2017
    Location
    usa
    MS-Off Ver
    2013
    Posts
    104

    Re: can't find file with macro in current subdirectory

    here's what I am using

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: can't find file with macro in current subdirectory

    The macro that you want to run, is that in the workbook you open?
    The extension is .xlsx
    No macros in workbooks with that extension.

  5. #5
    Forum Contributor
    Join Date
    03-31-2017
    Location
    usa
    MS-Off Ver
    2013
    Posts
    104

    Re: can't find file with macro in current subdirectory

    oh I see. I should use the xlsm extension. that worked. thx.

+ 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. Replies: 0
    Last Post: 01-04-2017, 12:07 AM
  2. [SOLVED] List all files in Directory and Subdirectory with File Property Details
    By Green Crocodile in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2016, 09:59 PM
  3. [SOLVED] Macro to find current month in row
    By Stratfordoaks in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 03:02 PM
  4. Saving file to its current location and current file name with current date and "FINAL"
    By ironwill20 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2012, 03:22 AM
  5. macro save file for current year and month with a file name SHReportddmmyy.xls
    By evwang in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-14-2011, 10:38 PM
  6. Replace current file name & default file name in macro
    By Charlene Hainsworth in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-11-2011, 04:27 PM
  7. Return most recent file in subdirectory with out using FileSearch
    By Enohp Aikon in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 10-03-2005, 07: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