+ Reply to Thread
Results 1 to 3 of 3

Add new row at the top of the sheet

  1. #1
    Registered User
    Join Date
    06-04-2012
    Location
    Sheffield, UK
    MS-Off Ver
    Excel 2003-2010
    Posts
    56

    Add new row at the top of the sheet

    Hello,
    I have a spreadsheet detailing customer appointments, I want to keep these in reverse date order so the most recent is on top however rather than sorting or manually adding a new row, is there a way to have a macro add a new blank row (but that would copy any formulas and data validation) at the top when the last entry has been completed?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,376

    Re: Add new row at the top of the sheet

    It's possible. I would suggest that you add (if there is not already one) a column at the end for a "completed flag". You could then monitor this with a Worksheet_Change event and, when set, add a new row.

    When you say "at the top" I assume that you don't actually mean that and have a header row?

    Best to upload a sample workbook for a specific response with formulae and DV.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


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

    Re: Add new row at the top of the sheet

    Hi JimmyG.,

    You could try something like this:

    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)

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