+ Reply to Thread
Results 1 to 7 of 7

Pesky dialogue box keeps VBA code from running smooth...

  1. #1
    Registered User
    Join Date
    07-02-2013
    Location
    Bakersfield, CA, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Pesky dialogue box keeps VBA code from running smooth...

    First question here, so appologies for any newb mistakes.

    Problem: the VBA macro below works great to get a regression started, but the standard function dialogue box asking it it's ok to over-write existing data keeps the code from running smooth. Appreciate any suggestions to remove the pesky dialogue box.


    Please Login or Register  to view this content.
    Running VBA code in Excel 2007.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Pesky dialogue box keeps VBA code from running smooth...

    You could try:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor codeslizer's Avatar
    Join Date
    05-28-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003 - 2010
    Posts
    245

    Re: Pesky dialogue box keeps VBA code from running smooth...

    Did you try disabling DisplayAlerts in your macro..

    Please Login or Register  to view this content.
    This usually stops the application from prompting user for alerts.

  4. #4
    Registered User
    Join Date
    07-02-2013
    Location
    Bakersfield, CA, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Pesky dialogue box keeps VBA code from running smooth...

    Thank you yudlugar and codeslizer for the quick and detailed suggestion!

  5. #5
    Registered User
    Join Date
    07-02-2013
    Location
    Bakersfield, CA, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Pesky dialogue box keeps VBA code from running smooth...

    Well, tried the suggestion but still get the dialogue box below...

    Dialogue.jpg

    ???
    Attached Images Attached Images

  6. #6
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Pesky dialogue box keeps VBA code from running smooth...

    I guess the xlam add-in ignores the display alerts setting. Why don't you just clear the cells where you are putting the regression analysis and then the dialogue box won't appear?

    e.g.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    07-02-2013
    Location
    Bakersfield, CA, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Pesky dialogue box keeps VBA code from running smooth...

    Quote Originally Posted by yudlugar View Post
    I guess the xlam add-in ignores the display alerts setting. Why don't you just clear the cells where you are putting the regression analysis and then the dialogue box won't appear?

    e.g.
    Please Login or Register  to view this content.
    Winner, winner...

    Simple and elegant solution that works. Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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