View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Héctor Miguel Héctor Miguel is offline
external usenet poster
 
Posts: 434
Default Convert Text into Formula in VBA

hi, ak !

How can the text in one cell convert into formula?
For example, this is the text in Cells(1,1) :-
18.5x20x15
instead of using the INSTR to find each "x" , any other method?
thanks for the help in advance


i.e.: - cells(1,1)="="&replace(cells(1,1),"x","*")

or, if you need for excel 97: - cells(1,1)="="&application.substitute(cells(1,1)," x","*")

hth,
hector.