+ Reply to Thread
Results 1 to 9 of 9

Code references two different codes (I know I don't make sense)

  1. #1
    Registered User
    Join Date
    06-17-2013
    Location
    Greenfield, IN
    MS-Off Ver
    Excel 2007
    Posts
    70

    Code references two different codes (I know I don't make sense)

    Please bear with me...

    I run a vba code that calls to another vba code remspecial2.
    I then have a second code (this is a piece)

    Please Login or Register  to view this content.
    BUT... it still calls remspecial2.

    I'm sure this is very simple.

  2. #2
    Forum Contributor
    Join Date
    04-26-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    167

    Re: Code references two different codes (I know I don't make sense)

    can you put your entire code?

    both for the first and second macro

  3. #3
    Registered User
    Join Date
    06-17-2013
    Location
    Greenfield, IN
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: Code references two different codes (I know I don't make sense)

    This is the first part - which could be written much better I'm certain

    Please Login or Register  to view this content.
    [B]This code calls to the code below

    Please Login or Register  to view this content.
    [B]Now I have this code (below)

    Please Login or Register  to view this content.

    This code should calls to the code below (and this is where the problem is... it goes back and re-initiates the sCompareRows()

    Please Login or Register  to view this content.

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Code references two different codes (I know I don't make sense)

    how do you know it calls the other code? are you stepping through your code?
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  5. #5
    Registered User
    Join Date
    06-17-2013
    Location
    Greenfield, IN
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: Code references two different codes (I know I don't make sense)

    Yes... I have been stepping through the code.

    When I get to the .Formula = "=CONCATALL(A2:AA2,""|"")" - it jumps to Remspecial

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Code references two different codes (I know I don't make sense)

    set calculation to manual

  7. #7
    Registered User
    Join Date
    06-17-2013
    Location
    Greenfield, IN
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: Code references two different codes (I know I don't make sense)

    Here is the entire first code:
    I wanted to see what was breaking it and I pasted it all together and I get "Compile Error Lable not defined at "GO TO EXIT HANDLER". when I placed the code (in blue) at the bottom. Everything else runs perfectly when that piece of code is not in here!

    Please Login or Register  to view this content.

  8. #8
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Code references two different codes (I know I don't make sense)

    remove the End Sub from the blue section

  9. #9
    Registered User
    Join Date
    06-17-2013
    Location
    Greenfield, IN
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: Code references two different codes (I know I don't make sense)

    That did in fact allow the code to run!
    Thank you JosephP

    Now on to the next issue (which continues) when we get to the area which calls the "CONCATALL" code... it still calls the "remspecial2".

+ 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