+ Reply to Thread
Results 1 to 6 of 6

Adding a new number row but clearing contents of new role

  1. #1
    Registered User
    Join Date
    09-08-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    20

    Adding a new number row but clearing contents of new role

    Hi all, I am currently working on a mini excel project where I need to add a new numbered row (i.e 2 to 3 to 4) but with my new rows having cleared contents.

    My code right now is the following and I can' t remember how to add the number row. Any help is greatly appreciated. Thank you.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Adding a new number row but clearing contents of new role

    I'm confused. To me your code already does what you are asking it to do. What am I missing?

  3. #3
    Registered User
    Join Date
    09-08-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Adding a new number row but clearing contents of new role

    To clarify, my spreadsheet on Col A is numbered but I am trying to automated it so that when adding a new row that it keeps it numbered but clear the contents of cell B to E for the new row.

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

    Re: Adding a new number row but clearing contents of new role

    Perhaps the last code line could be:

    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

  5. #5
    Registered User
    Join Date
    09-08-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Adding a new number row but clearing contents of new role

    Thank you xladept, I have added rep to you. Just one quick question, since Column A is still static with the numbering of rows. How would i go about in making the numbering automated so that when you add a row, it becomes the next number in sequence?

  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: Adding a new number row but clearing contents of new role

    Hi AW,

    Thanks for the rep!

    I'm afraid that I don't understand the question

+ 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] Adding number to a cell reference not to the contents
    By Go Buckeyes! in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-28-2014, 09:08 AM
  2. VBA Clearing Sheet Contents
    By bkeat in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-18-2013, 12:35 PM
  3. Clearing Contents
    By makku in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2011, 05:23 AM
  4. Clearing Contents ?
    By Mhz in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 01-21-2007, 11:20 AM
  5. Clearing Contents
    By Sean in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-06-2005, 01:06 PM

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