+ Reply to Thread
Results 1 to 6 of 6

Help with Copy Above Row Formatting and Inserting new Row Below

  1. #1
    Registered User
    Join Date
    08-02-2017
    Location
    Atlanta, GA
    MS-Off Ver
    Windows Office 2016
    Posts
    6

    Help with Copy Above Row Formatting and Inserting new Row Below

    Can someone please help me with what is probably very easy VBA code?

    I have two blocks: SubContractor Scope of Work and SubContractor Exclusions. I have Line Items that I want to repeat with the click of a button (the macro) and insert a new row below the last Line Item typed copying "Line Item" from Column B, then adding a sequential number to each line item 1,2,3,4... in Column C; and finally copying "No entry made" to Column D. I'd like to do this for both the Subcontract line items and the Exclusion line items. The macro buttons are to the right of the screen. I would very much appreciate your help. File attached.
    Attached Files Attached Files
    Last edited by brennonsmith; 11-26-2017 at 04:45 PM. Reason: Upload File

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Help with Copy Above Row Formatting and Inserting new Row Below

    Just add this line after your If Is Not found....line
    Please Login or Register  to view this content.
    brennonsmith-help-with-copy-above-row-formatting-and-inserting-new-row-below-scope-of-work-subc.xlsm
    Last edited by gmr4evr1; 11-26-2017 at 05:16 PM. Reason: added attachment
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    08-02-2017
    Location
    Atlanta, GA
    MS-Off Ver
    Windows Office 2016
    Posts
    6

    Re: Help with Copy Above Row Formatting and Inserting new Row Below

    Brilliant. Thank you so much.

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Help with Copy Above Row Formatting and Inserting new Row Below

    No problem, glad it worked for you.

  5. #5
    Registered User
    Join Date
    08-02-2017
    Location
    Atlanta, GA
    MS-Off Ver
    Windows Office 2016
    Posts
    6

    Re: Help with Copy Above Row Formatting and Inserting new Row Below

    Can I ask you one more question? Instead of it copying the last input text where "No entry made" would be---for instance, that will be filled say with "This is a sample entry"; how would i get the next row to copy the formatting of the row above it but then put the text "No entry made" in the next block? Would that just be an additional line of code?

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Help with Copy Above Row Formatting and Inserting new Row Below

    Try these:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ 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. Conditional formatting inserting symbols only
    By KK1234 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-16-2015, 01:23 PM
  2. Replies: 0
    Last Post: 05-20-2014, 11:58 AM
  3. Inserting new rows and formatting
    By stryder1587 in forum Excel General
    Replies: 0
    Last Post: 06-11-2012, 01:20 PM
  4. Inserting a row with conditional formatting
    By thetrickster in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-29-2011, 07:55 PM
  5. Copy formatting when inserting rows
    By pprseller in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-09-2009, 03:51 PM
  6. Conditional Formatting when inserting a row
    By zahoulik in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-07-2006, 11:10 AM
  7. Problem with Conditional Formatting when Inserting a Row
    By JGeniti in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2005, 04:05 PM

Tags for this Thread

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