+ Reply to Thread
Results 1 to 3 of 3

Macro Not Completing, No Errors

  1. #1
    Registered User
    Join Date
    07-12-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    57

    Macro Not Completing, No Errors

    Hello,

    I created a sheet that pulls data from another sheet and sorts it. The macro activates when this sheet is opened. I had it working fine then I realized that it wasn't sorting items with a "J" in front of them. I wrote a little code to fix the problem:

    Please Login or Register  to view this content.
    After inserting that, towards the bottom of the macro, I noticed that it was not running. I don't know how much of my code is not running, because everything else seems to work fine.

    I have been getting a graphical error after the code executes, but going to a different tab in the workbook and coming back showed that the right data was there. I have attached the workbook and commented out the "no save" and "refresh connections." I also removed the connection to the other sheet. Any help would be appreciated.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-12-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: Macro Not Completing, No Errors

    I tested the code by stepping through every line and it runs just fine. When I execute the code in the manner I need to (when the sheet opens) it doesn't throw any errors, but it makes modifications to sheets that it shouldn't. Since I direct all of the code, I can't figure out why something would execute on the Input sheet if the code says:
    Please Login or Register  to view this content.
    I am perplexed. I moved each section into a sub and called them from the previous sub. The result is the same. If anyone could give me a few pointers, I would appreciate it.
    Attached Files Attached Files

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Macro Not Completing, No Errors

    In this,

    Please Login or Register  to view this content.
    ... thos red references refer to the active worksheet. What sheet should it refer to?
    Entia non sunt multiplicanda sine necessitate

+ 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. Need help with completing an IF function
    By benburrows in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-15-2013, 07:31 AM
  2. Macro not completing when userdefined function is used as formula
    By maulika in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-16-2012, 10:31 AM
  3. [SOLVED] VBA Macro not completing it's task.
    By sgrondines in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-03-2012, 02:29 PM
  4. Completing Tax tables
    By Paperdoll in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-17-2011, 03:58 PM
  5. Need help completing cell selection in macro.
    By dwest100 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-23-2005, 11:28 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