![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
28/12/2009, 12:22
|
![Avatar de mrocf](http://static.forosdelweb.com/customavatars/avatar174421_2.gif) | | | Fecha de Ingreso: marzo-2007 Ubicación: Bs.As.
Mensajes: 1.103
Antigüedad: 17 años, 10 meses Puntos: 88 | |
Respuesta: funcion buscar palabra que retorna cierto o falso Hola! Negu.
Podrías intentar algo así: Código PHP: Function BuscarCadena(cadena As String) As Boolean
Dim Celda As Range, Hoja As Object
For Each Hoja In ActiveWorkbook.Sheets
Set Celda = Hoja.Cells.Find(What:=cadena, LookIn:=xlValues, LookAt:=xlWhole)
If Not Celda Is Nothing Then
BuscarCadena = True: Set Celda = Nothing: Exit Function
End If
Next Hoja
BuscarCadena = False
End Function
Saludos, Cacho.
Última edición por mrocf; 28/12/2009 a las 12:30 |