View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Vasant Nanavati Vasant Nanavati is offline
external usenet poster
 
Posts: 1,080
Default Substitute worksheet function

Could you define "it is bugging?"

--

Vasant

"SIGE" wrote in message
om...
Hi All,

I would like to replace a part of the text in A3 by "" (empty)for the
value in A5. In short the substitute worksheetfunction ... it is
bugging!
Any reason why?


Sub d()
Dim naam As String

naam = Application.WorksheetFunction.Substitute(ws.Range( "A3").Value,
ws.Range("A5").Value, "")
MsgBox naam
End Sub