+ Reply to Thread
Results 1 to 5 of 5

Add a button to insert new line....

  1. #1
    Registered User
    Join Date
    11-18-2011
    Location
    Colorado Springs, Colorado
    MS-Off Ver
    Excel 2016
    Posts
    17

    Add a button to insert new line....

    I would like to add a button or I guess it would be called a macro to lines 17, 24, and 43. I want it so that when you click the new line macro it inserts a blank line with the data validation and conditional formatting that the columns currently have. I've looked everywhere and everything I've looked at requires more "programming" than I feel comfortable with. Also, if you look at the spreadsheet and have any ideas to make it look more corporate or cleaner please let me know. I really appreciate the help on here and look forward to seeing how someone can do this.

    Thanks.

    Marty
    Attached Files Attached Files

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

    Re: Add a button to insert new line....

    If you used Excel's Table feature then you wouldn't need any button or code. In addition the inbuilt formatting is much more professional looking
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    11-18-2011
    Location
    Colorado Springs, Colorado
    MS-Off Ver
    Excel 2016
    Posts
    17

    Re: Add a button to insert new line....

    Boy, I feel really stupid.. after reading this tutorial I don't understand how this would solve my problem.

  4. #4
    Forum Contributor
    Join Date
    01-24-2011
    Location
    Sheppey
    MS-Off Ver
    Excel 2010
    Posts
    239

    Re: Add a button to insert new line....

    See attached sheet. The macro gets the row required from the active cell position, so if you want a row in 14 click on A14 first then click the "Add Line" button.
    Attached Files Attached Files

  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: Add a button to insert new line....

    With a table a new line is added automatically with formulas & formatting. You need to tidy the sheet - make sure that the table is distinct by adding some rows
    I've done the first table, as you add data to the column A the table expands.

    Start typing in A23 & watch the screen
    Attached Files Attached Files

+ 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