View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Mark B. Mark B. is offline
external usenet poster
 
Posts: 19
Default Changing a named range within a formula

I'm trying to set up a macro that will update the reference to a anamed range
within a formula.

For example, cell A1 contains a value of "LastName" which also happens to be
a named range.

Cell B1 contains the formula "=Count(LastName)"

When I change the value of A1 to the name of another named range, i.e.
"Address", and run the code, I want the formula in B1 to change to
"=Count(Address)"

Ideas?
--
Thanks,
Mark