home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC/CD Gamer UK 45
/
PCGAMER45.bin
/
netware
/
msie4pp
/
wsh.cab
/
chart.vbs
< prev
next >
Wrap
Text File
|
1996-10-15
|
1KB
|
38 lines
' Windows Script Host Sample Script
'
' ------------------------------------------------------------------------
' Copyright (C) 1996 Microsoft Corporation
'
' You have a royalty-free right to use, modify, reproduce and distribute
' the Sample Application Files (and/or any modified version) in any way
' you find useful, provided that you agree that Microsoft has no warranty,
' obligations or liability for any Sample Application Files.
' ------------------------------------------------------------------------
Dim objXL
Dim objXLchart
Dim iRotate
Set objXL = WScript.CreateObject("Excel.Application")
objXL.Visible = TURE
objXL.Workbooks.Add
objXL.Cells(1,1).Value = 5
objXL.Cells(1,2).Value = 10
objXL.Cells(1,3).Value = 15
objXL.Range("A1:C1").Select
Set objXLchart = objXL.Charts.Add()
objXL.Visible = True
objXLchart.Type = -4100
For iRotate = 5 To 180 Step 5
objXLchart.Rotation = iRotate
Next
For iRotate = 175 To 0 Step -5
objXLchart.Rotation = iRotate
Next
Set objXL = Nothing