Ver Mensaje Individual
  #3 (permalink)  
Antiguo 20/05/2010, 05:33
Pedro11111
 
Fecha de Ingreso: octubre-2009
Mensajes: 10
Antigüedad: 14 años, 6 meses
Puntos: 0
Respuesta: Seleccionar diferentes rangos de celdas en una macro

Hola 3pies,

ante todo, gracias.

He probado y me da "error de compilación" y "error de sintaxis".

el código (con tus instrucciones) ha quedado así:


Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo Ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("B1:B20,D2:D21,H1:H20").Select Is Nothing Then
With Target
If IsNumeric(.Value) Then
.Value = (Int(.Value) + (.Value - Int(.Value)) * 100 / 60) / 24
.NumberFormat = "hh:mm"
End If
End With
End If
Ws_exit:
Application.EnableEvents = True
End Sub


Saludos.