Re: Replacing occurence of string in another string

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Frank Kabel (frank.kabel_at_freenet.de)
Date: 03/11/04


Date: Thu, 11 Mar 2004 15:18:31 +0100

Hi Frank
try
=SUBSTITUTE(A1,"old_str","new_str")

--
Regards
Frank Kabel
Frankfurt, Germany
Frank M. wrote:
> Suppose I have a string value with many lines of text. Within it
> there is several place holders (e.g. <xxx>) and that I want to change
> the text replacing the place holders with different strings to make a
> final text.
>
> Is there a function for replacing one or all occurences of a string
> withing another string, or do I have to make a function myself
> through use of for example the InStr function?
>
>
> Regards,
>
> Frank M.


Relevant Pages

  • Re: PDF ?
    ... your problem lies probably in the following: ... Frank Kabel ... > Dim newfilename As String ...
    (microsoft.public.excel.misc)
  • =?iso-8859-1?Q?Re:_DataRow_-_Verst=E4ndnis-Frage?=
    ... ich setze auf die aktuelle DataRow ein "EndEdit" ... "Frank Dzaebel" schrieb im Newsbeitrag ... string bindMember = binding.BindingMemberInfo.BindingMember; ... BindingSource bs = binding.DataSource as BindingSource; ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: Not Upgrading...Why?
    ... >>Frank in Aus. ... denote a short, medium and long string. ... beer per tszString, 1 six pack per sszString, one slab for lszString ... <cracks a beer> now let's see if i get a bbByte ...
    (comp.lang.basic.visual.misc)
  • Re: saving value of variable on assert
    ... Thanks Frank, this is indeed the correct way. ... Viewing in watch and copying from there will copy the full value, no matter what the size of the string. ... >> format. ...
    (microsoft.public.vc.debugger)
  • Re: Programm ermitteln, dem ein Dateityp zugeordnet ist
    ... Du kannst folgendes benutzen (Datei/Endung ggf. ... public static string FindExecutable ... Dipl.Inf. Frank Dzaebel ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)