Results 1 to 4 of 4

Thread: Excel VBA simple one *RESOLVED*

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904

    Excel VBA simple one *RESOLVED*

    in an Excel VBA macro, I have the statement

    Range("D44").Value = n2

    which works fine until I add a row, at which time the "D44" reference REMAINS "D44" even though the cell I'm targeting has moved down one row.

    So, my question is, is there some way to tie VBA code to cells in a way that lets them track the cells as they do when they are referenced by formulas? That is, if a FORUMLA used "D44" and I added a row, the formula would then use "D45", which is what I want my VBA to do.

    Thanks for any help.
    Last edited by phinds; Jun 5th, 2003 at 07:09 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width