![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
12/03/2010, 07:57
|
![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: ¿como validar el contenido de una celda en excel? Hola! Coopérnico46.
Podrías intentar con:
Código vba:
Ver originalPrivate Sub Worksheet_Change(ByVal Target As Range) If Intersect(Target, [e1:e100]) Is Nothing Then Exit Sub If Evaluate("SUMPRODUCT( --ISNUMBER( SEARCH({""\"",""/"","":"",""%"",""'"",""~*"",""~?"",""<"","">"",""|"",""""""""}, " & Target.Address & ") ) )") > 0 Then MsgBox "Se ha introducido un caracter inválido..." End If End Sub
Saludos, Cacho. ![Afirmando](http://static.forosdelweb.com/fdwtheme/images/smilies/afirmar.gif) |