+ Reply to Thread
Results 1 to 6 of 6

Insert Row Based Upon Cell Value

  1. #1
    Registered User
    Join Date
    08-20-2008
    Location
    Houston
    Posts
    3

    Insert Row Based Upon Cell Value

    Hey guys,

    I'm trying to write a macro that will insert a blank row below a cell/row if it sees "Insert" in Column P.

    The range of the data is from P4:P1999 where "Insert" will be found. Inbetween the "Insert" values there are "False" values so something with a loop until "" will work just fine.

    Basically looking for:
    ----------------------------------------
    False
    False
    Insert
    False
    ----------------------------------------
    Becomes:
    ----------------------------------------
    False
    False
    Insert

    False
    ----------------------------------------
    The "Insert" & "False" values are formula based from an IF function.

    Thanks in advance!

    Gabriel

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Welcome to the Forum. Please don't use unnecessary words in your titles. The purpose of titles is to help users search the forums, statements like "need help" make the search less effective.
    Hope that helps.

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

    Free DataBaseForm example

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

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-20-2008
    Location
    Houston
    Posts
    3
    Edited, not solved.
    Last edited by carguy935; 08-20-2008 at 12:58 PM.

  5. #5
    Registered User
    Join Date
    08-20-2008
    Location
    Houston
    Posts
    3
    Correction, its giving me a problem by doing the following:

    Before:
    ------------------
    Insert
    Insert

    Insert
    ------------------

    After
    ------------------
    Insert

    Insert


    Insert
    ------------------

    Its inserting a row after the first "Insert" as it should, but then inserting a row before the other "Insert" cells instead of after.

    Any ideas?

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

    Please Login or Register  to view this content.

+ 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. Replies: 1
    Last Post: 08-15-2008, 07:15 AM
  2. Excel 2003: VBA to control Header title based on date in cell B3.
    By jplink49 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-06-2008, 04:05 PM
  3. read cell content and use with Hyperlinks.Add Cell
    By apoc [t.i.m.] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-04-2007, 10:02 AM
  4. Conditional Format a cell based on a range of numbers
    By fablhof in forum Excel General
    Replies: 2
    Last Post: 04-27-2007, 11:39 PM
  5. Changing the value of a cell based on the value of another cell
    By Joenash in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-11-2006, 06:46 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