+ Reply to Thread
Results 1 to 3 of 3

Excel VBA - Step Into with F8 starting in Form.Show

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    268

    Excel VBA - Step Into with F8 starting in Form.Show

    Hi,

    Is there a way to Step Into with F8 in the code with a Form.Show? I have a form called uform1 with a simple text box with "user" and "password", and I want to step into the code using the following sample code:

    Please Login or Register  to view this content.
    When I run the above code with F8, and I try to insert the "username" in the form, the processing stops and marks as yellow the following part of the code which was generated automatically:

    Please Login or Register  to view this content.

    Can anyone help me, please? Looks like it is not possible to step into when there is a form?

    Thanks a lot!

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Excel VBA - Step Into with F8 starting in Form.Show

    Hello trizzo,

    If you want to examine your code at a particular point then use the Stop statement in your code. In this case, you would insert Stop somewhere in your UserForm's code. This will pause the macro until you press F5.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Excel VBA - Step Into with F8 starting in Form.Show

    You can also use the Immediate Window to set/change your variables directly without going to the form.
    Ben Van Johnson

+ 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