' Create a Pivot Bubble Chart (with a filter and series)
' using Vbsedit's free Toolkit

Set pivot = CreateObject("Vbsedit.PivotTable")
pivot.Initialize3,3

folder=Left( WScript.ScriptFullName, InStrRev( WScript.ScriptFullName,"\"))

name=Array("Nancy","Andrew","Janet","Margaret","Steven","Michael","Robert","Laura","Anne")
category=Array("Beverages","Condiments","Confections","Dairy Products","Grains/Cereals","Meat/Poultry","Produce","Seafood")

'Generates 100000 lines of random data
For i=0 to100000
  n = Int((UBound(name) + 1) * Rnd)
  c = Int((UBound(category) + 1) * Rnd)
  sale=Int(Rnd*100)
  discount=sale*Int(Rnd()*20)/100
  pivot.Add name(n),category(c),2005 + Int(12*Rnd),1,sale,discount
Next

pivot.SetColumnNames"Employees","Categories","Year","Number of orders","Sales","Discounts"
pivot.Finalize

pivot.LoadChartTemplate"bubble"
pivot.ReplaceTag"title","My Bubble Chart With a Filter and Series"
pivot.SaveChart folder & "bubble2.htm"

Set shell = CreateObject("Wscript.Shell")
shell.Run folder & "bubble2.htm",1,False



search for scripts

VbsEdit contains all these sample scripts!


Download Now!



Download   Home   Scripts

Copyright © 2001-2024 adersοft