+ Reply to Thread
Results 1 to 3 of 3

Macro doesn't complete when calling from another macro

  1. #1
    Registered User
    Join Date
    01-26-2012
    Location
    Slovenia; Kranj
    MS-Off Ver
    Office 365
    Posts
    67

    Question Macro doesn't complete when calling from another macro

    Dear all, hope you are doing fine. I was, but now I have an macro issue ;-)

    I have code which insert entire row above active cell, make a copy of previouse row and all cells mark gray, strikethrough... works fine! This is code...

    Please Login or Register  to view this content.
    But when I call this macro from another code...

    Please Login or Register  to view this content.
    ... everytime first macro stops after "ActiveCell.Offset(1, 0).Select".

    Does anyone have any idea why and what to do? Second code is trigered when user select "no" from dropdown menu...


    Thx in advance and have a great day, Marko
    IF a = b THEN
    GO "back to school"

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: Macro doesn't complete when calling from another macro

    The first code will probably trigger the Change event, so if you run the first code from the Change event then the Change event will be called again.

    Try disabling events before calling the first code.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    01-26-2012
    Location
    Slovenia; Kranj
    MS-Off Ver
    Office 365
    Posts
    67

    Re: Macro doesn't complete when calling from another macro

    Norie... just one sentence: you are real Guru! ;-) Thx!

    Cheers, Marko

+ 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. [SOLVED] Define variable in macro than calling that macro inside another macro
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2015, 10:58 AM
  2. macro doesn't complete all steps
    By Capcel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-31-2013, 09:20 AM
  3. Calling macro 10 times, add header list to macro call only once
    By capson in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-05-2013, 09:42 AM
  4. [SOLVED] Calling a macro from an event macro. Using nest loops with if statements
    By c0d3crunch3r in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-12-2012, 08:31 AM
  5. Button command doesnt work while calling a macro from a macro
    By bryan444 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-06-2012, 09:39 AM
  6. Calling Macro from another macro and storing result
    By mstuj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-03-2010, 01:12 PM
  7. From a macro, Calling anoter macro at a given line
    By aca in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-13-2007, 06:39 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