+ Reply to Thread
Results 1 to 5 of 5

Have to run macro twice, in order for it to work?

  1. #1
    Registered User
    Join Date
    03-07-2017
    Location
    Texas
    MS-Off Ver
    Office 2016
    Posts
    39

    Have to run macro twice, in order for it to work?

    Hello, everyone! Having some trouble with a macro I've been working on. It's used to delete blanks (over a million blank rows) when another separate macro is run. If I get this one working, I would like to merge the two macros together.

    First time it is clicked, it loads and acts like it's going to work. Less than a minute after loading...nothing happens (at least, visually). I click it again and it runs quickly; this time, it works.

    Here is my very simple code:
    Please Login or Register  to view this content.
    Last edited by cluelessdood; 11-15-2018 at 01:51 AM.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Have to run macro twice, in order for it to work?

    What happens if you deactivate the On Error resume next?
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    03-07-2017
    Location
    Texas
    MS-Off Ver
    Office 2016
    Posts
    39

    Re: Have to run macro twice, in order for it to work?

    Quote Originally Posted by Keebellah View Post
    What happens if you deactivate the On Error resume next?
    I just tried it. I still have to click it twice.

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Have to run macro twice, in order for it to work?

    No error message?

    Have you gone through the VBA step-by-step?

  5. #5
    Registered User
    Join Date
    03-07-2017
    Location
    Texas
    MS-Off Ver
    Office 2016
    Posts
    39

    Re: Have to run macro twice, in order for it to work?

    Quote Originally Posted by Keebellah View Post
    No error message?

    Have you gone through the VBA step-by-step?
    Yep, no errors are popping up. Do you think it's the first macro that is having some effect on this one?

+ 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: 2
    Last Post: 03-25-2016, 10:16 AM
  2. Work order
    By efadmn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2015, 08:48 AM
  3. Work Order Tracking
    By BigF'inG in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2014, 05:18 AM
  4. Open Word Work Order Template with excel generated work order #
    By Tivka in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-26-2012, 02:24 PM
  5. [SOLVED] Pricelist to work order
    By gluktar in forum Excel General
    Replies: 9
    Last Post: 04-19-2012, 03:37 PM
  6. Macro for Issuing a "Work Order"
    By umrebelfan69 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-22-2008, 02:41 PM
  7. [SOLVED] Service work order
    By schoolgeek63 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-07-2005, 05:06 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