Originally Posted by
sportguy0913
Another question: if I delete a row, will the code adjust accordingly? For example, down the line if we have this code entered and delete row 4 in the spreadsheet, will any code that follows row 4 adjust for the absence? (i.e. if we have code for row 5, will it adjust and become code for the new row 4, or will I have to go in and manually change it?)
I don't foresee this happening too much, but if we add a medication, and I believe this is an alphabetic list, then just wondering if the code will adjust for that or not.
Deleting a row triggers the Change event, but it sends the entire affected range as the Target. However, the code assumes we're working with a single cell, so it throws up an error. The easiest (read: laziest) way to work around this is to add the following statement before the first If statement:
Cheers,
Paul
Bookmarks