VBScript UCase º¯Êý
¶¨ÒåºÍÓ÷¨
CreateObject º¯Êý¿É´´½¨Ò»¸öÖ¸¶¨ÀàÐ͵ĶÔÏó¡£
Óï·¨
CreateObject(servername.typename[,location])
²ÎÊý | ÃèÊö |
---|---|
servername | ±ØÐèµÄ¡£Ìṩ´Ë¶ÔÏóµÄÓ¦ÓóÌÐòÃû³Æ¡£ |
typename | ±ØÐèµÄ¡£¶ÔÏóµÄÀàÐÍ»òÀࣨtype/class£©¡£ |
location | ¿ÉÑ¡µÄ¡£Ôںδ¦´´½¨¶ÔÏó¡£ |
ʵÀý
Àý×Ó 1
dim myexcel Set myexcel=CreateObject("Excel.Sheet") myexcel.Application.Visible=True ...code... myexcel.Application.Quit Set myexcel=Nothing