+ Reply to Thread
Results 1 to 2 of 2

dynamic cell reference in VBA?

  1. #1
    Registered User
    Join Date
    08-13-2010
    Location
    New Hampshire USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    dynamic cell reference in VBA?

    Ok, bear with me, I'm still pretty new at this.
    My VBA code uses the value of a cell to change an image. That value is updated by a drop down list. However, when I add rows, that cell reference is no longer valid in the code. Is there a way to make that reference update when rows are added to the worksheet?

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: dynamic cell reference in VBA?

    You can name the cell (Name Manager on the Formula tab) and then refer to that name in code instead of a cell reference - e.g.:
    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

+ 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