Saltar al contenido
View in the app

A better way to browse. Learn more.

Ayuda Excel

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Homogeneizar texto

publicado

____________________________________________________________________

Hola:

Alguna que otra vez habreis tenido problemas a la hora de encontrar un texto por culpa de un punto, una coma un acento, un espacio, etc..., bueno pues aquí os dejo esta pequeña función que permite homogeneizar un texto para poder tener mas éxito en las comparaciones, sobre todo en nombres y apellidos.

Private Function Textificar(Text0 As Variant)
Textificar = LCase(Text0)
Do Until InStr(Textificar, " ") = 0: Textificar = Replace(Textificar, " ", Empty): Loop
Do Until InStr(Textificar, ",") = 0: Textificar = Replace(Textificar, ",", Empty): Loop
Do Until InStr(Textificar, ";") = 0: Textificar = Replace(Textificar, ";", Empty): Loop
Do Until InStr(Textificar, ".") = 0: Textificar = Replace(Textificar, ".", Empty): Loop
Do Until InStr(Textificar, ":") = 0: Textificar = Replace(Textificar, " ", Empty): Loop
Do Until InStr(Textificar, "(") = 0: Textificar = Replace(Textificar, " ", Empty): Loop
Do Until InStr(Textificar, ")") = 0: Textificar = Replace(Textificar, " ", Empty): Loop
Do Until InStr(Textificar, "-") = 0: Textificar = Replace(Textificar, "-", Empty): Loop
Do Until InStr(Textificar, "á") = 0: Textificar = Replace(Textificar, "á", "a"): Loop
Do Until InStr(Textificar, "é") = 0: Textificar = Replace(Textificar, "é", "e"): Loop
Do Until InStr(Textificar, "í") = 0: Textificar = Replace(Textificar, "í", "i"): Loop
Do Until InStr(Textificar, "ó") = 0: Textificar = Replace(Textificar, "ó", "o"): Loop
Do Until InStr(Textificar, "ú") = 0: Textificar = Replace(Textificar, "ú", "u"): Loop
Do Until InStr(Textificar, "ü") = 0: Textificar = Replace(Textificar, "ü", "u"): Loop
End Function
[/CODE]

[b][u]Por ejemplo, esta condición se cumplirá:[/u][/b]

[b]If [color=#ff0000]Textificar[/color]("[color=#0000ff]MÁRTI NEZ-perez antonio[/color]") = [color=#ff0000]Textificar[/color]("[color=#0000ff]Martínez Pérez, Antonio[/color]") Then

[/b]

Saludos

[center][size=6][color=#ff0000][u]DESCARGAR EJEMPLO DE USO DEL POST #3[/u][/color][/size][/center]

[b]______________________________________________________________[/b]

Featured Replies

Archivado

Este tema está ahora archivado y está cerrado a más respuestas.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.