Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Autocorrect WJason Excel Discussion (Misc queries) 3 September 27th 07 11:38 PM
Autocorrect James Silverton[_2_] Excel Discussion (Misc queries) 1 August 4th 07 03:34 PM
autocorrect notrace2004 Excel Discussion (Misc queries) 1 May 29th 06 08:28 AM
AutoCorrect reneabesmer Excel Worksheet Functions 1 April 19th 05 05:34 AM
Autocorrect in VBA Jeff Fuller Excel Programming 4 December 23rd 03 11:51 AM


All times are GMT +1. The time now is 06:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"