Ayuda con esta macro
Hola:
Estoy tratando de ejecutar la siguiente macro colocada dentro de la hoja excel pero me da error al realizar cambios en cualquier celda de la hoja de calculo. Esta es la macro:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$D$16" Then
Target.Value = Ucase(Target.Value)
End If
If Target.Address = "$K$22" Then
Target.Value = Ucase(Target.Value)
End If
If Target.Address = "$D$24" Then
Target.Value = Ucase(Target.Value)
End If
If Target.Address = "$K$24" Then
Target.Value = Ucase(Target.Value)
End If
If Target.Address = "$D$26" Then
Target.Value = Ucase(Target.Value)
End If
If Target.Address = "$K$26" Then
Target.Value = Ucase(Target.Value)
End If
If Target.Address = "$D$32" Then
Target.Value = Ucase(Target.Value)
End If
If Target.Address = "$D$34" Then
Target.Value = Ucase(Target.Value)
End If
If Target.Address = "$C$8" And Target.Value = "DEVENGADO" Then
Call Devengado
End If
End Sub
Si me pudieran ayudar!
Estoy tratando de ejecutar la siguiente macro colocada dentro de la hoja excel pero me da error al realizar cambios en cualquier celda de la hoja de calculo. Esta es la macro:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$D$16" Then
Target.Value = Ucase(Target.Value)
End If
If Target.Address = "$K$22" Then
Target.Value = Ucase(Target.Value)
End If
If Target.Address = "$D$24" Then
Target.Value = Ucase(Target.Value)
End If
If Target.Address = "$K$24" Then
Target.Value = Ucase(Target.Value)
End If
If Target.Address = "$D$26" Then
Target.Value = Ucase(Target.Value)
End If
If Target.Address = "$K$26" Then
Target.Value = Ucase(Target.Value)
End If
If Target.Address = "$D$32" Then
Target.Value = Ucase(Target.Value)
End If
If Target.Address = "$D$34" Then
Target.Value = Ucase(Target.Value)
End If
If Target.Address = "$C$8" And Target.Value = "DEVENGADO" Then
Call Devengado
End If
End Sub
Si me pudieran ayudar!
1 Respuesta
Respuesta de calvuch
1