Propiedad PageSetup.BottomMargin (Excel)

Devuelve o establece el tamaño del margen inferior, en puntos. Double de lectura y escritura.

Sintaxis

expresión. BottomMargin

Expresión Variable que representa un objeto PageSetup .

Comentarios

Los márgenes se establecen o devuelven en puntos. Use el método InchesToPoints o el método CentímetrosToPoints para realizar la conversión.

Ejemplo:

Estos dos ejemplos establecen el margen inferior de Sheet1 como 0,5 pulgadas (36 puntos).

Worksheets("Sheet1").PageSetup.BottomMargin = _ 
 Application.InchesToPoints(0.5) 
 
Worksheets("Sheet1").PageSetup.BottomMargin = 36

Este ejemplo muestra el valor actual del margen inferior de Sheet1.

marginInches = Worksheets("Sheet1").PageSetup.BottomMargin / _ 
 Application.InchesToPoints(1) 
MsgBox "The current bottom margin is " & marginInches & " inches"

Soporte técnico y comentarios

¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.