VBA: Suche nach einem bestimmten Kürzel in einem Text und diese Kürzel löschen?
Hallo zusammen,
ich habe in Spalte H eines Worksheets habe ich folgende Informationen (das ist nur ein Beispiel. In meiner Tabelle sind das mehrerer 100 verschiedene Varianten) stehen:
Da ich das Kürzel (ETL) nicht benötige, soll das in Spalte I wie folgt ausgegeben werden:
Wie kann ich das automatisieren, dass immer wenn das Kürzel ETL vorhanden ist, dass dieses entsprechend gelöscht wird (inkl. des Leerzeichens)?
Hello!
Before – you should separate the names and roles. There are different entities that should get their own column. This makes data processing much easier.
The following VBA script deletes all character strings specified by you in a value range you have to forgive:
To automatically and parameterize the script, you need the following snippet in the worksheet yourself:
At this point, the value range is observed to “value changes” as soon as you write a new value into a cell, the sub will be executed automatically.
green: the function “Sub Worksheet_Change()”
orange: the function “replace()”
Please contact 🙂
Open search function (Strg, F) – go to search and replace – enter “ (ETL)” and enter nothing when replaced – click on “Find and Replace”.
If I’m not on the point with terms, I apologize. I work with Excel in English and have just to describe the process from the head.