+ Reply to Thread
Results 1 to 2 of 2

Install VBA Reference Library causes Can't enter break mode

  1. #1
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Install VBA Reference Library causes Can't enter break mode

    So I have this XLSM and there is code which installs a reference to another open XLSM workbook.

    However as soon as the code reaches the line to "AddFromFile", a message box appears: "Can't enter break mode at this time"

    Selecting the Continue button allows the code to keep running but any debug.assert and any break points after this line are ignored!

    Can anyone let me know how to continue to allow debugging after I add a reference?


    I googled and found similar problems which were solved by Norie & Rory. See links below.

    http://www.mrexcel.com/forum/excel-q...ode-error.html

    http://www.ozgrid.com/forum/showthread.php?t=152478

    But one solved it by early binding, the other by late binding?!?

    And how do I do early or late bind the addfromfile on an excel workbook?

    My Add Reference function below if it helps solve it.
    Please Login or Register  to view this content.
    Last edited by mc84excel; 03-04-2015 at 01:19 AM.
    *******************************************************

    HELP WANTED! (Links to Forum threads)
    Trying to create reusable code for Custom Events at Workbook (not Application) level

    *******************************************************

  2. #2
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Install VBA Reference Library / Can't enter break mode / Form vbModeless

    In the end, I gave up and went back to Application.Run

+ 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. [SOLVED] "Can't enter break mode at this time" (Issues with adding controls at runtime)
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 12-16-2013, 07:10 PM
  2. User form macro opening in break mode
    By LiLi1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-02-2011, 06:49 PM
  3. Can't enter break mode at this time
    By CWillis in forum Excel General
    Replies: 2
    Last Post: 06-01-2006, 02:45 PM
  4. [SOLVED] Can't enter break mode
    By eugene in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-11-2006, 04:25 PM
  5. [SOLVED] received message: Can't enter break mode at this time
    By William Weder in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2006, 10:00 PM

Tags for this Thread

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