+ Reply to Thread
Results 1 to 2 of 2

RTD.RefreshData crashes when invoked from modal form

  1. #1
    Registered User
    Join Date
    02-11-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    1

    RTD.RefreshData crashes when invoked from modal form

    I have created a very simple modal form with two buttons: one just closes the form, and the other calls Application.RTD.RefreshData. In Excel 2003 this all works just fine, but in Excel 2010 the Application.RTD.RefreshData crashes with

    Run-time error '1004': Application-defined or object-defined error
    If I create the form as modeless everything works fine in both Excel 2003 and Excel 2010.

    For what it's worth, this is all the code behind the form:

    Please Login or Register  to view this content.
    And I invoke the form using this code in my sheet:

    Please Login or Register  to view this content.
    Is this a known issue with Excel 2010, or am I really not allowed to call Application.RTD.RefreshData from a modal form?

    EDIT:
    I should add that as far as I can tell I have no RTD servers in the Excel session.

    EDIT2:
    This workbook demonstrates the problem. Would be very grateful if anyone could confirm whether they see the same issue, and in which version of Excel...
    RTD simplest.xls
    Last edited by a.collister; 02-11-2014 at 01:35 PM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: RTD.RefreshData crashes when invoked from modal form

    Hi a.collister

    Welcome to the Forum!!

    Code does not error in Excel 2003 or Excel 2007
    Run Time Error in Excel 2010...no clue why...
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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. Must close or hide topmost modal form first
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-28-2011, 01:41 PM
  2. Showing a modeless form on top of a modal form
    By foxguy in forum Excel General
    Replies: 15
    Last Post: 09-06-2010, 03:23 PM
  3. Retaining focus on non-modal form
    By AndySuk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-16-2007, 03:06 PM
  4. When was Modal/Modeless Form option born
    By Ken Soenen in forum Excel General
    Replies: 2
    Last Post: 11-04-2005, 06:25 PM
  5. Non -Modal form disappears
    By Chris W in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2005, 03:06 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