REPLACEB /text/scalc/01/func_replaceb.xhp REPLACEB function replace text; byte position REPLACEB Replaces part of a text string, based on byte positions, with a different text string. Syntax REPLACEB(OldText; StartPosition; ByteCount; NewText) OldText is the text in which to replace characters. StartPosition is the byte position at which to start replacing. The first byte is position 1. ByteCount is the number of bytes to replace. NewText is the text to insert. Double-byte characters count as 2 bytes; single-byte characters count as 1 byte. Examples =REPLACEB("abc";2;1;"x") returns "axc". =REPLACEB("abc";4;0;"d") returns "abcd".