0% found this document useful (0 votes)
61 views5 pages

Macros de Smart Fit

This document contains the code for 3 macros in Excel: 1. The first macro adds a button labeled "SALIR DE EXCEL" that quits Excel when clicked. 2. The second macro adds a button labeled "Agrandar Pantalla" that makes the screen full screen when clicked. 3. The third macro adds a button labeled "Regresar Pantalla" that returns the screen to normal size when clicked.

Uploaded by

VictorSanchez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views5 pages

Macros de Smart Fit

This document contains the code for 3 macros in Excel: 1. The first macro adds a button labeled "SALIR DE EXCEL" that quits Excel when clicked. 2. The second macro adds a button labeled "Agrandar Pantalla" that makes the screen full screen when clicked. 3. The third macro adds a button labeled "Regresar Pantalla" that returns the screen to normal size when clicked.

Uploaded by

VictorSanchez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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