+ Reply to Thread
Results 1 to 4 of 4

User Form Update

  1. #1
    Registered User
    Join Date
    12-24-2014
    Location
    Tillsonburg, Ontario, Canada
    MS-Off Ver
    Home and Business 2013
    Posts
    14

    User Form Update

    Hello,

    I have attached a spreadsheet that is used to calculate pay bonuses for employees, and the data is programmed to appear on the Month Review tab. I want a user form to appear when the spreadsheet is first opened, and this would allow the operator to input monthly sales and to select the current month from a drop-down list.

    I have started the formatting of this user form in VBA, but I am unsure of how to program it and make it update the relevant cells. Can someone help me to set up the VBA form so that the monthly sales figure is updated onto cell B2, and have a drop-down menu on the user form with all the months of the year which will update cell E1??

    Thanks,
    Yorke
    Attached Files Attached Files

  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: User Form Update

    Hello Yorke181,

    The attached workbook has been modified per your request.

    Hree is the current UserForm code:
    Please Login or Register  to view this content.
    This UserForm will be displayed when the workbook first opens. The current month is the default selection.

    Workbook Open Event MAcro
    Please Login or Register  to view this content.
    Attached Files Attached Files
    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
    Registered User
    Join Date
    12-24-2014
    Location
    Tillsonburg, Ontario, Canada
    MS-Off Ver
    Home and Business 2013
    Posts
    14

    Re: User Form Update

    Thanks a bunch!

    Is it possible that when "submit" is pressed on the user form, it then closes?

  4. #4
    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: User Form Update

    Hello Yorke181,

    Sure, change the code for CommandButton1 to what is below or just add the line in blue font.

    Please Login or Register  to view this content.

+ 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. Replies: 1
    Last Post: 08-28-2013, 05:04 PM
  2. Match new password to specific user and update list via custom user form
    By Sargekd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-03-2011, 09:40 AM
  3. Filling form fields via worksheet dropdowns, user update via form, change form color
    By Demosthenes&Locke in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2010, 08:58 AM
  4. Listbox Update on user form
    By Irish_Griffin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-15-2009, 02:41 PM
  5. Update Range from User Form
    By fybar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2006, 08:30 PM

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