+ Reply to Thread
Results 1 to 3 of 3

column and row autocorrect?

  1. #1
    dr chuck
    Guest

    column and row autocorrect?

    i have made an elaborate xls file that performs multileveled sorts and pre
    defined selections of data. The columns and rows of my data are defined in
    my macros (ie perform blah blah blah at A6... etc).

    Lack of forethought has led me to want to add additional columns and or rows
    which will offset the cell address where my macro should function. For
    example what was in A6 may now be located in D10.

    is there a way to make my macro auto correct for addition of columns or
    rows? Do i just have to re-code the macro with the specific addresses after
    changes are made?

    any thoughts would be greatly appreciated .

    --
    dr chuck

  2. #2
    Jim Thomlinson
    Guest

    RE: column and row autocorrect?

    There is no easy way out of this one. The best idea is to reference named
    ranges in your macros. That way if you add rows or columns then the macros
    will be unaffected since the named ranges will be moved.
    --
    HTH...

    Jim Thomlinson


    "dr chuck" wrote:

    > i have made an elaborate xls file that performs multileveled sorts and pre
    > defined selections of data. The columns and rows of my data are defined in
    > my macros (ie perform blah blah blah at A6... etc).
    >
    > Lack of forethought has led me to want to add additional columns and or rows
    > which will offset the cell address where my macro should function. For
    > example what was in A6 may now be located in D10.
    >
    > is there a way to make my macro auto correct for addition of columns or
    > rows? Do i just have to re-code the macro with the specific addresses after
    > changes are made?
    >
    > any thoughts would be greatly appreciated .
    >
    > --
    > dr chuck


  3. #3
    dr chuck
    Guest

    RE: column and row autocorrect?

    hey jim,
    Thanks for the info. I am unfamilair with named ranges but i have found some
    information to begin understanding them.
    --
    dr chuck


    "Jim Thomlinson" wrote:

    > There is no easy way out of this one. The best idea is to reference named
    > ranges in your macros. That way if you add rows or columns then the macros
    > will be unaffected since the named ranges will be moved.
    > --
    > HTH...
    >
    > Jim Thomlinson
    >
    >
    > "dr chuck" wrote:
    >
    > > i have made an elaborate xls file that performs multileveled sorts and pre
    > > defined selections of data. The columns and rows of my data are defined in
    > > my macros (ie perform blah blah blah at A6... etc).
    > >
    > > Lack of forethought has led me to want to add additional columns and or rows
    > > which will offset the cell address where my macro should function. For
    > > example what was in A6 may now be located in D10.
    > >
    > > is there a way to make my macro auto correct for addition of columns or
    > > rows? Do i just have to re-code the macro with the specific addresses after
    > > changes are made?
    > >
    > > any thoughts would be greatly appreciated .
    > >
    > > --
    > > dr chuck


+ 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