Jump to content
Sign in to follow this  
Milton Cordova

Solo mayusculas en celdas

Recommended Posts

Saludos me pueden ayudar para modificar esta macro con la finalidad de que le indique en que hojas debe aplicarse y para ciertas celdas ejm. celda A1, B9, C5, de la Hoja 1

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)

If WorksheetFunction.IsText(Target.Value) = True Then Target.Value = UCase(Target.Value)

End Sub

Gracias

Share this post


Link to post
Share on other sites

Sustituye tu macro por:



Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Sh.Name = "Hoja1" And _
Not Application.Intersect(Target, Range("[COLOR=#ff0000][B]A1,B5,C10,G43[/B][/COLOR]")) Is Nothing Then
Target.Value = UCase(Target.Value)
End If

End Sub


[/CODE]

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  



×
×
  • Create New...

Important Information

Privacy Policy


CTA Templates.png