Buenas Tardes,
Tengo un codigo para dar formato a unas celdas, en una hoja protegida y
compartida, como hago para ejecutarlo desprotegiendo el Libro compartido y
volviendolo a compartir y proteger? Ademas cuando entro al archivo me pide
password de libro compartido, esto no me sucedia al activar este codigo,
Este es el Código:
Sub Prueba()
ActiveWorkbook.UnprotectSharing "angelo"
Worksheets("Hoja1").Unprotect _
Password:="123"
Range("D6:D13").Select
Selection.Font.Bold = True
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection.Font
.Name = "Times New Roman"
.Size = 14
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
Range("D6").Select
Worksheets("Hoja1").Protect _
Password:="123", _
UserInterfaceOnly:=True
ActiveWorkbook.ProtectSharing "angelo"
End Sub
Angelo Vernaza
Leer las respuestas