+ Reply to Thread
Results 1 to 7 of 7

Target.Row

  1. #1
    Registered User
    Join Date
    06-04-2014
    Posts
    24

    Target.Row

    I need to have my first column to increment by 1 automatically once input is recognized in row 2.

    Could someone complete this for me?
    Please Login or Register  to view this content.
    Right now, I am using locked cells in Row 1 as, I am using two statements the first:
    Please Login or Register  to view this content.
    As, the first row in the column are "labels" and obviously cannot be used.

    Then, I pasted this code down the rest of Row "A" (1) to fill-in the rest of the row as input in row "B" became active

    Please Login or Register  to view this content.
    How can I translate the above to fit this format?

    Please Login or Register  to view this content.
    I haven't worked with VBA since 2005 and I am just struggling to remember all of this

    Thank you!!

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Target.Row

    "A" is a column not a row. What cell holds the formula =IF(B3>1,A2+1,"") ?

    Pehaps what you could use is
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    06-04-2014
    Posts
    24

    Re: Target.Row

    Quote Originally Posted by mikerickson View Post
    "A" is a column not a row. What cell holds the formula =IF(B3>1,A2+1,"") ?

    Pehaps what you could use is
    Please Login or Register  to view this content.
    Column 1 Row 2

    Thanks!!!!

    Last edited by ragrone; 06-08-2014 at 05:56 PM.

  4. #4
    Registered User
    Join Date
    06-04-2014
    Posts
    24

    Re: Target.Row

    Quote Originally Posted by mikerickson View Post
    "A" is a column not a row. What cell holds the formula =IF(B3>1,A2+1,"") ?

    Pehaps what you could use is
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    This is not working for whatever reason?

    Help!!!

  5. #5
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Target.Row

    The formula is referencing cells in column B, but the Change event puts the formula in Column B.

    You said that you wanted =IF(B2>1,1,"") to be put in a cell, which cell did you want that formula put in?

  6. #6
    Registered User
    Join Date
    06-04-2014
    Posts
    24

    Re: Target.Row

    Quote Originally Posted by mikerickson View Post
    The formula is referencing cells in column B, but the Change event puts the formula in Column B.

    You said that you wanted =IF(B2>1,1,"") to be put in a cell, which cell did you want that formula put in?
    Please Login or Register  to view this content.
    Both are in column A with the second pasted down rows starting at Column A, Row 3.

    Please Login or Register  to view this content.
    This does nothing than give me an error in Column A

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Target.Row

    Maybe?

    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. [SOLVED] Worksheet_Change(ByVal Target As Range) - set to only update when 3 target cells changed?
    By trillium in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2012, 06:40 PM
  2. [SOLVED] Need alternate syntax 'Select Case' on Target.Column and Target.Row at the same time.
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2012, 11:19 AM
  3. Worksheet_CHange (ByVal Target as Range) when target is formula cell
    By coasterman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2012, 07:00 PM
  4. Replies: 1
    Last Post: 07-29-2010, 12:22 PM
  5. Ranges:Target in Worksheet_SelectionChange(ByVal Target As Range)
    By Kevin McCartney in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-15-2005, 09:06 AM

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