PB打开Excel
在PB中怎样打开一个指定目录下的Excel文档啊?急!
用GetFileOpenName(),在pb幫助中查一下。
run("C:\Program Files\Microsoft Office\Office10\excel.exe"+''+"D:\职工\geren.xls",minimized!)
handle=openchannel("excel","geren.xls")
在这里输入导数据的语句
closechannel(handle,handle(w_print))
st_print="[print()]"
execremote(st_print,"excel","geren.xls")
execremote("[close(false)]","excel","geren.xls")
execremote("[quit()]","excel","system")