You are on page 1of 5

MACRO PARA SALIR

Sub MiPrimerMacro()
'
' MiPrimerMacro Macro
' Al Aplicar Este Boton Salir de Excel
'

'
ActiveSheet.Buttons.Add(1083.75, 195, 234, 53.25).Select
Selection.OnAction = "PERSONAL.XLSB!MiPrimerMacro"
Selection.Characters.Text = "SALIR DE EXCEL"
With Selection.Characters(Start:=1, Length:=14).Font
.Name = "Calibri"
.FontStyle = "Normal"
.Size = 11
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 1
End With
Range("Q23").Select
End Sub
Sub MiPrimerMacro()

'Al Aplicar este boton Salir de Excel


APPLICATION.Quit

End Sub

MACRO PARA AGRANDAR PANTALLA


Sub MiSegundaMacro()
'
' MiSegundaMacro Macro
' Al aplicar este Boton Agrandar Pantalla.
'

'
ActiveWindow.SmallScroll Down:=-30
ActiveSheet.Buttons.Add(1371.75, 337.5, 267.75, 91.5).Select
Selection.OnAction = "PERSONAL.XLSB!MiSegundaMacro"
Selection.Characters.Text = "Agrandar Pantalla"
With Selection.Characters(Start:=1, Length:=17).Font
.Name = "Calibri"
.FontStyle = "Normal"
.Size = 11
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 1
End With
Range("AB34").Select
End Sub

Sub MiSegundaMacro()
'Al Aplicar este boton agrandar Pantalla
Application.DisplayFullScreen = True

End Sub

MACRO PARA REGRESAR LA PANTALLA A TAMAO NORMAL


Sub MiTercerMacro()
'
' MiTercerMacro Macro
' Al Aplicar este Boton Regresar a tamao normal.
'

'
ActiveWindow.SmallScroll Down:=-3
ActiveSheet.Buttons.Add(1092, 547.5, 228, 72).Select
Selection.OnAction = "PERSONAL.XLSB!MiTercerMacro"
Selection.Characters.Text = "Regresar Pantalla"
With Selection.Characters(Start:=1, Length:=17).Font
.Name = "Calibri"
.FontStyle = "Normal"
.Size = 11
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone

.ColorIndex = 1
End With
Range("V46").Select
End Sub

Sub MiTercerMacro()
'Al Aplicar este Boton Regresar la Pantalla a tamao normal.
Application.DisplayFullScreen = False

End Sub

MACROS DE BRYAN

Sub MiPrimerMacro()

'Al Aplicar este boton Salir de Excel


Application.Quit

End Sub

Sub MiSegundaMacro()
'Al Aplicar este boton agrandar Pantalla
Application.DisplayFullScreen = True

End Sub

Sub MiTercerMacro()
'Al Aplicar este Boton Regresar la Pantalla a tamao normal.
Application.DisplayFullScreen = False

End Sub

You might also like