+ Reply to Thread
Results 1 to 6 of 6

Adding a new row using a user form

  1. #1
    Registered User
    Join Date
    06-13-2016
    Location
    Maryland
    MS-Off Ver
    2010
    Posts
    25

    Adding a new row using a user form

    Hi all!

    I am very bad with excel and have been asked to do several projects for work so you will probably see me posting here a lot within the next few weeks! I created a user form (attached below) and I want users to be able to fill it out and when they click "insert new row" it will add a new row to my spreadsheet with the information they entered in the appropriate columns. I have also attached an example of my spreadsheet so you can see what that looks like. For now I just need the fields in the user form to be filled out so you can disregard any other information.Any help is greatly appreciated, much thanks!
    Attached Images Attached Images
    Attached Files Attached Files

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

    Re: Adding a new row using a user form

    Perhaps this will get you started.

    BSB
    Attached Files Attached Files

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,914

    Re: Adding a new row using a user form

    One friendly word of advice though.
    Later on in your development these merged cells will come back to bite you.(searches, copying, etc..) So if you can avoid them do it now in the early stages rather then having to worrie about them later.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  4. #4
    Registered User
    Join Date
    06-13-2016
    Location
    Maryland
    MS-Off Ver
    2010
    Posts
    25

    Re: Adding a new row using a user form

    You are amazing thank you so much!

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

    Re: Adding a new row using a user form

    Happy to help. Thanks for the rep point

    Keep in mind bakerman2's wise words above regarding merged cells though. If this is just a way of recording data then they're fine, but if you ever need to create stats or do anything else even remotely fancy with this data then the merged cells will be the bane of your life.

    BSB

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

    Re: Adding a new row using a user form

    Oh, and get rid of this line in the code:
    Please Login or Register  to view this content.
    It was there purely as a pointer for me to make sure it was looking at the correct row before pasting.

    BSB

+ 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] User Form not adding data
    By JO505 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 02-07-2013, 01:21 PM
  2. Adding a Calendar to a User Form
    By 00Able in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-30-2012, 04:58 PM
  3. Adding "All Borders" with a User Form (Similar to Data Form)
    By kgreave1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-26-2012, 01:57 PM
  4. Adding a Calendar to EXISTING User Form
    By robert_shindorf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-02-2010, 10:58 AM
  5. Adding a function to a User Form
    By jutah in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2010, 03:41 PM
  6. Adding controls to user form
    By toocold in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2009, 04:42 AM
  7. Adding a control to a User Form
    By scantor145 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2005, 05:05 PM
  8. Adding data to sheet with user form
    By Jay in forum Excel General
    Replies: 1
    Last Post: 06-08-2005, 11: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