+ Reply to Thread
Results 1 to 1 of 1

Update reference cell after inserting new rows

  1. #1
    Registered User
    Join Date
    09-02-2012
    Location
    kassel, germany
    MS-Off Ver
    Excel 2007
    Posts
    1

    Update reference cell after inserting new rows

    Hello everyone,

    I am trying to build up a reference function in Excel with VBA. The idea is to link information from one row and used for another (see below example), however when a new row(s) inserted in the table, the reference links are no longer matched. I have no idea whether I should use Dynamic function, indirect , Refersto.... or other functions. Please HELP!!!! Thank you.

    Example
    (ex. row 1 consists Task: A / / Start: Jan / End: 2 months
    row 2 consists Task: B / Predecessor = 1 / Start: =C1 + D1 / End: 2 months

    The start of month of task B is taking the information from A by indicating row no. 1
    Question is how to get row no. update if a new row inserted above task A. ie. if 2 new rows inserted, the cell at Task B should be 3 instead of 1.

    Here is my VBA code.

    Please Login or Register  to view this content.
    Last edited by Paul; 09-06-2012 at 06:45 PM. Reason: Added CODE tags for new user. Please do so yourself in the future.

+ 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