+ Reply to Thread
Results 1 to 4 of 4

Insert new row at the top of the Table

  1. #1
    Registered User
    Join Date
    12-29-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Insert new row at the top of the Table

    Hello

    I am trying to work out the code to insert a row to a table which is populated with data and drop down lists etc. The data in the table are currently sorted from "Z to A" as i want the last record to be showing at the top of the table. My issue is I want to insert "new record" (new row) in Row 5 directly underneath the table headings however the macro kept copying the formatting (colour etc) of the above row (headings) when I run my current macro. How can I make it stop?

    Many thanks in advance

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Insert new row at the top of the Table

    use
    Please Login or Register  to view this content.
    You can easily change the row no to 1, or 2

  3. #3
    Registered User
    Join Date
    12-29-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Insert new row at the top of the Table

    Hi AB33

    thanks for your reply. That is the code i am using but the issue i am having is that when i do that, the macro will copy the formatting of the row above (in this case table headers) which is not what i want because it is shaded differently to the rest of the table and has different height. Is there a way to make sure the new row has same formatting as the row below and not above?

    many thanks

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Insert new row at the top of the Table

    Unless you have some conditional formatting on your sheets, you are only inserting a new row, so I am not sure why is the formatting of any cell is copying in to a new row.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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