Académique Documents
Professionnel Documents
Culture Documents
Sub Macro1()
' Macro1 Macro
r = (10 - 7) * Rnd + 10
qat = (900 - 600) * Rnd + 900
qap = (450 - 250) * Rnd + 450
p1 = (100 - 60) * Rnd + 100
t1 = (25 - 8) * Rnd + 25
vol = (3000 - 1000) * Rnd + 3000
rev = (4500 - 3500) * Rnd + 4500
Selection.TypeText Text:= _
"Un ciclo dual con una relacin de compresin de " & Round(r, 3) & ",
una adicin"
Selection.TypeText Text:= _
" de calor total de " & Round(qat, 3) & " kJ/kgK en la que la adicin de
calor a pr"
Selection.TypeText Text:= _
"esin constante es de " & Round(qap, 3) & " kJ/kgK , admite aire
atmosfrico a " & Round(p1, 3) & "kPa"
Selection.MoveLeft Unit:=wdCharacter, Count:=3
Selection.TypeText Text:=" "
Selection.MoveRight Unit:=wdCharacter, Count:=3
Selection.TypeText Text:= _
" y " & Round(t1, 3) & "C tiene " & Round(vol, 3) & "cc, es de dos
tiempos y gira a " & Round(rev, 3) & " rpm .Resolver por"
Selection.TypeText Text:=" el mtodo aproximado y determinar"
Selection.MoveLeft Unit:=wdWord, Count:=19, Extend:=wdExtend
Selection.MoveUp Unit:=wdParagraph, Count:=1, Extend:=wdExtend
Selection.ParagraphFormat.Alignment = wdAlignParagraphJustify
Selection.Font.Size = 12
Selection.Font.Name = "Arial"
Selection.Font.Bold = wdToggle
Selection.MoveRight Unit:=wdCharacter, Count:=1