BAI TAP CD

11
Star t BÀI TẬP LÀM HÌNH CHUYỂN ĐỘNG Bài 1: Tạo chuyển động bánh răng

description

bai tap powerpoint

Transcript of BAI TAP CD

Page 1: BAI TAP CD

Start

BÀI TẬP LÀM HÌNH CHUYỂN ĐỘNG

Bài 1: Tạo chuyển động bánh răng

Page 2: BAI TAP CD

Bài 2: cho bi lăng theo một hình nào đó

Page 3: BAI TAP CD

Bài 3: Tạo đồng hồ đếm xuôi 5 giây

12345Start

Page 4: BAI TAP CD

Bài 3: Tạo đồng hồ đếm ngược 5 giây

543210start

Page 5: BAI TAP CD
Page 6: BAI TAP CD

Bài 4: Tạo đồng hồ đếm ngược 10 giây dùng dòng lệnh (File đính kèm)

Sub dem_nguoc()Dim oshp As ShapeDim oshpRng As ShapeRangeDim osld As SlideDim oeff As EffectDim i As IntegerDim Iduration As IntegerDim Istep As IntegerDim dText As DateDim texttoshow As StringOn Error GoTo errhandlerIf ActiveWindow.Selection.ShapeRange.Count > 1 ThenMsgBox "Hay chon mot doi tuong la shape!"Exit SubEnd IfSet osld = ActiveWindow.Selection.SlideRange(1)Set oshp = ActiveWindow.Selection.ShapeRange(1)oshp.Copy

Page 7: BAI TAP CD

Bài 4: Tạo đồng hồ đếm ngược 10 giây dùng dòng lệnh

Istep = 1 'thoi gian nhay tung hinhIduration = 120 'so giay can dem

For i = Iduration To 0 Step -IstepSet oshpRng = osld.Shapes.PasteWith oshpRng.Left = oshp.Left.Top = oshp.TopEnd WithdText = CDate(i \ 3600 & ":" & ((i Mod 3600) \ 60) & ":" & (i Mod 60))If Iduration < 60 Thentexttoshow = Format(dText, "Ss")Else If Iduration < 3600 Then texttoshow = Format(dText, "Nn:Ss") Else texttoshow = Format(dText, "Hh:Nn:Ss") End IfEnd If

Page 8: BAI TAP CD

Bài 4: Tạo đồng hồ đếm ngược 10 giây dùng dòng lệnh

oshpRng(1).TextFrame.TextRange = texttoshowSet oeff = osld.TimeLine.MainSequence _.AddEffect(oshpRng(1), msoAnimEffectFlashOnce, , msoAnimTriggerAfterPrevious)oeff.Timing.Duration = IstepNext ioshp.DeleteExit Suberrhandler:MsgBox "**ERROR** - Ban chua chon doi tuong?"End Sub

Page 9: BAI TAP CD

Start

02:0001:5901:5801:5701:5601:5501:5401:5301:5201:5101:5001:4901:4801:4701:4601:4501:4401:4301:4201:4101:4001:3901:3801:3701:3601:3501:3401:3301:3201:3101:3001:2901:2801:2701:2601:2501:2401:2301:2201:2101:2001:1901:1801:1701:1601:1501:1401:1301:1201:1101:1001:0901:0801:0701:0601:0501:0401:0301:0201:0101:0000:5900:5800:5700:5600:5500:5400:5300:5200:5100:5000:4900:4800:4700:4600:4500:4400:4300:4200:4100:4000:3900:3800:3700:3600:3500:3400:3300:3200:3100:3000:2900:2800:2700:2600:2500:2400:2300:2200:2100:2000:1900:1800:1700:1600:1500:1400:1300:1200:1100:1000:0900:0800:0700:0600:0500:0400:0300:0200:0100:00

Tạo đồng hồ 120 giây

Page 10: BAI TAP CD

02:0001:5901:5801:5701:5601:5501:5401:5301:5201:5101:5001:4901:4801:4701:4601:4501:4401:4301:4201:4101:4001:3901:3801:3701:3601:3501:3401:3301:3201:3101:3001:2901:2801:2701:2601:2501:2401:2301:2201:2101:2001:1901:1801:1701:1601:1501:1401:1301:1201:1101:1001:0901:0801:0701:0601:0501:0401:0301:0201:0101:0000:5900:5800:5700:5600:5500:5400:5300:5200:5100:5000:4900:4800:4700:4600:4500:4400:4300:4200:4100:4000:3900:3800:3700:3600:3500:3400:3300:3200:3100:3000:2900:2800:2700:2600:2500:2400:2300:2200:2100:2000:1900:1800:1700:1600:1500:1400:1300:1200:1100:1000:0900:0800:0700:0600:0500:0400:0300:0200:0100:00TG

Tạo đồng hồ 120 giây

Page 11: BAI TAP CD

02:0001:5901:5801:5701:5601:5501:5401:5301:5201:5101:5001:4901:4801:4701:4601:4501:4401:4301:4201:4101:4001:3901:3801:3701:3601:3501:3401:3301:3201:3101:3001:2901:2801:2701:2601:2501:2401:2301:2201:2101:2001:1901:1801:1701:1601:1501:1401:1301:1201:1101:1001:0901:0801:0701:0601:0501:0401:0301:0201:0101:0000:5900:5800:5700:5600:5500:5400:5300:5200:5100:5000:4900:4800:4700:4600:4500:4400:4300:4200:4100:4000:3900:3800:3700:3600:3500:3400:3300:3200:3100:3000:2900:2800:2700:2600:2500:2400:2300:2200:2100:2000:1900:1800:1700:1600:1500:1400:1300:1200:1100:1000:0900:0800:0700:0600:0500:0400:0300:0200:0100:00