Docsity

Macro para ajustar el tamaño de las figuras y líneas en un documento de Word, Resúmenes de Anatomía

Toggle sidebar
bg1
Sub Macro1()
Ancho = 10
Ancho = CentimetersToPoints(Ancho)
For Each Flotante In ActiveDocument.Shapes
Flotante.Width = Ancho * Flotante.Width / Flotante.Height
Flotante.Height = Ancho
Next
For Each EnLinea In ActiveDocument.InlineShapes
EnLinea.Width = Ancho * EnLinea.Width / EnLinea.Height
EnLinea.Height = Ancho
Next
End Sub

Vista previa parcial del texto

¡Descarga Macro para ajustar el tamaño de las figuras y líneas en un documento de Word y más Resúmenes en PDF de Anatomía solo en Docsity!

Sub Macro1() Ancho = 10 Ancho = CentimetersToPoints(Ancho) For Each Flotante In ActiveDocument.Shapes Flotante.Width = Ancho * Flotante.Width / Flotante.Height Flotante.Height = Ancho Next For Each EnLinea In ActiveDocument.InlineShapes EnLinea.Width = Ancho * EnLinea.Width / EnLinea.Height EnLinea.Height = Ancho Next End Sub