+ Reply to Thread
Results 1 to 3 of 3

Auto increase cell reference

  1. #1
    Registered User
    Join Date
    11-19-2010
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2003
    Posts
    14

    Auto increase cell reference

    Hi.
    I have a small problem with this code. I want it to increase the cell reference as it runs through the cells like when you type in a formula in one cell and copy it to the cell below or next to it changes the cell reference to match the new.

    Example:
    =If(data!A1=1;1;0) will change to =If(data!B1=1;1;0)

    But i dont know how to add this to the macro - here is my attempt:

    Please Login or Register  to view this content.
    Thanks in advance!

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Auto increase cell reference

    Try:
    Please Login or Register  to view this content.
    Note: a straight link to a blank cell will return 0 anyway.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    11-19-2010
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Auto increase cell reference

    Wow thanks thats works perfectly! Much appreciated

+ 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