+ Reply to Thread
Results 1 to 3 of 3

Stepping through jumps to a User Defined Function

  1. #1
    Registered User
    Join Date
    07-21-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    44

    Stepping through jumps to a User Defined Function

    When I am stepping through a macro using "F8" I end up jumping to a User Defined Function part way through the stepping process. I then have to step through the function or press "F5". Why does the macro jump to the function and leave the macro and how can it be avoided? When stepping through the macro and I come upon the return value of the function the macro will change the active cell of the worksheet based on the return value of the function.

    Danny
    Last edited by TryToExcel; 08-07-2010 at 02:47 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Stepping through jumps to a User Defined Function

    If the macro uses the UDF then it would be part of the process of stepping through
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    07-21-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: Stepping through jumps to a User Defined Function

    Thanks. I saw where the stepping exits the main macro to the UDF so I put a "Breakpoint" where it returns and I use "F5" key on the last step prior to when I exit the main macro so it "bypasses" my seeing the function.

+ 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