+ Reply to Thread
Results 1 to 5 of 5

crashing macro w/ range parameter?

  1. #1
    Registered User
    Join Date
    04-01-2009
    Location
    WashDC
    MS-Off Ver
    Excel 2003
    Posts
    84

    crashing macro w/ range parameter?

    I wrote this subroutine, called by another, which keeps crashing. I'm pretty sure it's because of ERange. The call is:

    EditMode "Compliance", StatAppFlag

    And StatAppFlag is a named range.

    Please Login or Register  to view this content.
    I'm still a rank VBA beginner, I guess it's been about 2 weeks now, so it might be something obvious. I've tried ERange declared as a Range, also. The error I get is run time error 424: object required.

    thanks for any help!

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: crashing macro w/ range parameter?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,502

    Re: crashing macro w/ range parameter?

    Try:

    Please Login or Register  to view this content.

    Or maybe:

    Please Login or Register  to view this content.

    regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,502

    Re: crashing macro w/ range parameter?

    Thanks for the rep.

  5. #5
    Registered User
    Join Date
    04-01-2009
    Location
    WashDC
    MS-Off Ver
    Excel 2003
    Posts
    84

    Re: crashing macro w/ range parameter?

    Quote Originally Posted by TMS View Post
    Thanks for the rep.
    Sure: I owe a lot of people rep, I keep forgetting. Thanks for your help!

+ 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: 3
    Last Post: 06-24-2014, 11:04 AM
  2. Macro crashing on certain line
    By Matt2014 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2014, 09:41 AM
  3. Replies: 4
    Last Post: 02-17-2014, 10:48 PM
  4. [SOLVED] Crashing Macro, Not Enough Memory
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-07-2005, 07:05 AM
  5. Help with a crashing Macro needed
    By Tadragh1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-13-2005, 06: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