mathsbeauty
Board Regular
- Joined
- Apr 23, 2011
- Messages
- 89
Hello! I want to insert substitute function in excel worksheet. I have tried the following
Range("B1").Formula = "=Substitute(A1,"p","q")"
or
Range("B1").Formula = Application.WorksheetFunction.Substitute(A1, "p", "q")
In first case I get error . In second case i don't get any error, but the formula doesn't get inserted in the cell. Any help?
Range("B1").Formula = "=Substitute(A1,"p","q")"
or
Range("B1").Formula = Application.WorksheetFunction.Substitute(A1, "p", "q")
In first case I get error . In second case i don't get any error, but the formula doesn't get inserted in the cell. Any help?