VBScript CreateObject ပြုလုပ်

အသုံးပြုနည်း နှင့် သဘော

CreateObject ပြုလုပ် ပုံစံ အသုံးပြုပါ

ပြောချက်

CreateObject(servername.typename[,location])
ပါဝင်သည် အကြောင်း
servername လိုအပ်ချက်မရှိ၍။ အရာ၏ အမှတ်အသား ကို ပြောပါ
typename လိုအပ်ချက်မရှိ၍။ အရာ၏ အမျိုးအစား သို့မဟုတ် အမျိုးအစား
location လိုအပ်ချက်မရှိ၍။ အရာကို တွင်းတွင် တည်ဆောက်ရမလဲ

အကျိုးခံ

အကျိုးခံ 1

dim myexcel
Set myexcel=CreateObject("Excel.Sheet")
myexcel.Application.Visible=True
...code...
myexcel.Application.Quit
Set myexcel=Nothing