Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Editting Formulas Using a Macro

I am linking a summary spreadsheet with the output cells
of some detailled spreadsheets. To semiautomate the
process I envision linking a test cell to $A$1 in the
target spreadsheet, copying that linked cell with the
appropriate path to a number of other cells, and then
going in and editting "$A$1" at the end of the formula to
another name, "P-Link" for example.

My problem is that my M.O. for using the RECORD MACRO
option to see how to do the required function yields only
the finished edit, without intermediate steps.

Suspect it has to do with how the cell or value is
dimensioned, or something, but don't know.

Looking forward to hearing from someone who has been
there.

Chuck H.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Editting Formulas Using a Macro

Chuck,

For each formula, use a line like this, which puts a formula in cell A2:

Range("A2").Formula = Replace(Range("A1").Formula, "$A$1", "P-Link")

HTH,
Bernie
MS Excel MVP

"Chuck H." wrote in message
...
I am linking a summary spreadsheet with the output cells
of some detailled spreadsheets. To semiautomate the
process I envision linking a test cell to $A$1 in the
target spreadsheet, copying that linked cell with the
appropriate path to a number of other cells, and then
going in and editting "$A$1" at the end of the formula to
another name, "P-Link" for example.

My problem is that my M.O. for using the RECORD MACRO
option to see how to do the required function yields only
the finished edit, without intermediate steps.

Suspect it has to do with how the cell or value is
dimensioned, or something, but don't know.

Looking forward to hearing from someone who has been
there.

Chuck H.



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
I need help with a table formula/mass editting urlocaljeweler New Users to Excel 2 November 18th 09 07:29 PM
editting a template kaja New Users to Excel 2 June 6th 08 10:29 PM
Editting xml format sheets stored in database. Martyn Excel Discussion (Misc queries) 0 April 1st 08 02:22 AM
Macro with formulas... Somecallmejosh Excel Discussion (Misc queries) 2 April 12th 05 06:18 PM
Editting textbox value that is grouped with a shape David Cuthill[_2_] Excel Programming 5 June 1st 04 06:39 PM


All times are GMT +1. The time now is 10:09 PM.

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

About Us

"It's about Microsoft Excel"