Oliver Dewar
Board Regular
- Joined
- Apr 17, 2011
- Messages
- 201
Hi All.
Fairly simple one this. I think I'm dealing with a bug in excel 2007 - I'm doing this replace sequence in vba across a sheet with many instances of the character to replace, the sheet includes some cells with large strings of text.
Here's my code:
Some of the "§§" instances are replaced while others - especially those within the large text strings, are not.
Does anyone know of a sure fire way to do this replacement? Speed is preferable... but right now I'm just after 100% reliability.
edit*** oohh, just found out about Lookat:=xlWhole and the other settings... perhaps I need to stipulate those settings more concretly. Going to do more research but if you can put me out of my misery faster then please do!
Thanks All.
Oliver
Fairly simple one this. I think I'm dealing with a bug in excel 2007 - I'm doing this replace sequence in vba across a sheet with many instances of the character to replace, the sheet includes some cells with large strings of text.
Here's my code:
Code:
ActiveSheet.Cells.Replace What:="§§", Replacement:=Chr(10)
Some of the "§§" instances are replaced while others - especially those within the large text strings, are not.
Does anyone know of a sure fire way to do this replacement? Speed is preferable... but right now I'm just after 100% reliability.
edit*** oohh, just found out about Lookat:=xlWhole and the other settings... perhaps I need to stipulate those settings more concretly. Going to do more research but if you can put me out of my misery faster then please do!
Thanks All.
Oliver
Last edited: