+ Reply to Thread
Results 1 to 5 of 5

open user form from button

  1. #1
    Forum Contributor
    Join Date
    02-16-2012
    Location
    London, England
    MS-Off Ver
    Excel mac 2011
    Posts
    238

    open user form from button

    Hi,

    This is really embarrassing, how do you access a button on a spreadsheet so it will open a user form please.

    I have designed my user form and just want to get it so I can constantly test while developing, but I can't work out how to get it to open with a button on the spreadsheet. The annoying thing is that I made a whole massive application about a year ago, and looking through the code I can't see how the button to open it is actually connected to the user form.

    Kind regards
    Rob

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: open user form from button

    Insert an ActiveX commandbutton on the sheet --> Double click this button while still in design mode --> In the opened code window just write one line of code given below within the button click event --> come out of design mode --> And you will be able to open the userform by clicking the button.

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    8,061

    Re: open user form from button

    Put Excel in design mode (under Developer tab) then double click on the button. That will take you to the code for that button and will be where the instruction to open the form is.

    BSB

  4. #4
    Forum Contributor
    Join Date
    02-16-2012
    Location
    London, England
    MS-Off Ver
    Excel mac 2011
    Posts
    238

    Re: open user form from button

    Thank you, yes that was it, I feel like such an idiot.

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: open user form from button

    You're welcome Rob! Glad I could help.
    Thanks for the feedback.


    If that takes care of your original question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.

+ 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] VBA UserForm.Value Check If User Form Buttons checked Not Working. Check Button on Open.
    By Doc.AElstein in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-11-2016, 05:55 PM
  2. [SOLVED] Command button should be disable once user form is open
    By geliedee in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-18-2016, 01:38 PM
  3. User form button to open a URL?
    By frogger4 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-22-2015, 10:37 AM
  4. [SOLVED] User Form - Hyperlink Button within a Form, to create a Link on a Designated Cell
    By Sinalk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2013, 07:29 AM
  5. [SOLVED] Excel vba user form- open directly to user form not worksheet
    By PANTECH in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 04-24-2013, 05:07 PM
  6. VBA User Form - Linking Close Button and Cancel Button
    By nivassrii in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-26-2011, 07:05 AM

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