+ Reply to Thread
Results 1 to 5 of 5

Pop-up menu Macro that fills cells

  1. #1
    Registered User
    Join Date
    06-06-2010
    Location
    Bucharest
    MS-Off Ver
    Excel 2007
    Posts
    5

    Pop-up menu Macro that fills cells

    Hello everybody,

    Please help me with this problem.
    I need to create a macro that enables a pop-up menu (after a button is pressed), which contains blank fields, drop down lists and check-boxes; so, after the user completes these fields in the menu, and submits it, rows will be inserted with filled cells (depending of data inserted in the fields of the menu) containing that information.

    I don't want to go into details, I just want to know how to start. I worked with macros before, but I don't know how to create the menu with the those fields.

    Thank you and best regards.
    Last edited by alin_m; 06-08-2010 at 05:44 AM.

  2. #2
    Registered User
    Join Date
    12-10-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Pop-up menu Macro that fills cells

    you need to look at creating a userforms in VBA (same area as the modules). If you call it frmMain you then would have something like this:

    Please Login or Register  to view this content.
    now the above will load and show your form on the user interface with any controls you have added after you click the button in Excel. To setup these controls/ any data etc you need to add an _Initialize event in the form as follows:

    Please Login or Register  to view this content.

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

    Re: Pop-up menu Macro that fills cells

    See the example http://www.excelforum.com/excel-prog...ml#post2319735here for "pooping up the form. Then look at the DatabaseForm for adding data to rows

    http://excel-it.com/vba_examples.htm
    Hope that helps.

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

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    06-06-2010
    Location
    Bucharest
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Pop-up menu Macro that fills cells

    Thank you very much !
    That's all I need to know in order to get started with this.

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

    Re: Pop-up menu Macro that fills cells

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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