View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Mahr Yon Mahr Yon is offline
external usenet poster
 
Posts: 3
Default Change a formula in VBA

Can anyone help with this problem:

I am trying to write a macro to change a formula in a cell and place the new
formula in the same cell.

For instance:
Cel L1 in a worksheet contains: ='C:\TEST\[file.xls]data'!J7
By hand I can change this in: = TRIM('C:\TEST\[file10.xls]data'!J7) which
removes excess spaces.
How must I do this in a macro?

Thanks in advance

MahrYon