Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Need to insert a row and have macros update

Hello,

I have a spreadsheet that is already very macro heavy.
I have now decided that it would be better if I had more rows at the
top for a summary portion
BUT
My macros are already point to cell B2 and G8, etc

How can I adjust my spreadsheet by inserting a row and column so that
the macros will now look for C3 instead of B2 and H9 instead of G8
etc.

Is there a global edit option that will pick this up or do I have to
comb through my macros manually?

PLease help

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 120
Default Need to insert a row and have macros update

Would doing a find/replace from the edit menu in the code editor work
for this?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Need to insert a row and have macros update

Comb through your macros manually would be the safest. There is a find and
replace capability in the VBE.

Many people define fixed reference points like this as constants at the top
of their module. Then in the code, they utilize the constants. When the
fixed reference points change as in your case, then they only have to change
the value of the constant at the top of the module.

--
Regards,
Tom Ogilvy



"gmunro" wrote:

Hello,

I have a spreadsheet that is already very macro heavy.
I have now decided that it would be better if I had more rows at the
top for a summary portion
BUT
My macros are already point to cell B2 and G8, etc

How can I adjust my spreadsheet by inserting a row and column so that
the macros will now look for C3 instead of B2 and H9 instead of G8
etc.

Is there a global edit option that will pick this up or do I have to
comb through my macros manually?

PLease help


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
New to macros, need to update worksheets Tina Excel Programming 3 February 28th 06 05:09 PM
How do I update charts using macros Seng Charts and Charting in Excel 3 November 29th 05 06:02 PM
Macros To Update Charts Thriller Excel Programming 2 August 26th 05 04:34 AM
insert or update Laurent M Excel Programming 2 February 2nd 05 10:21 AM
insert into a cell the last update Ramiro Cubillan Excel Worksheet Functions 1 December 29th 04 08:45 PM


All times are GMT +1. The time now is 07:30 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"