+ Reply to Thread
Results 1 to 2 of 2

Switching between user forms

  1. #1
    Registered User
    Join Date
    03-08-2010
    Location
    Delhi, India
    MS-Off Ver
    Excel 2003
    Posts
    5

    Switching between user forms

    I have two user forms form1 and form2. On clicking a command button from form1, I goto form2. But I am unable to get the command button on form2 goback to form1 (which is already opened in the background)

    code for command button in form1

    sub command1_click()
    form2.show
    end sub

    This works

    code for command button in form 2

    sub command2_click()
    form1.show
    end sub

    This doesnt work.

    Request all for your help

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: Switching between user forms

    Good morning Lokesh_g

    Unfortunately, your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

+ 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