分享至
您好,我如何在Access2002環境下用Vba寫一個函數連結外部Excel檔案
已邀請的邦友 {{ invite_list.length }}/5
dim ec as object, wb as object set ec = createobject("excel.application") ec.visible = true set wb = ec.workbooks.open("x:\xxx\file.xlsx") ' your code... ' wb.close savechanges:=false ec.quit set wb= nothing set ec= nothing
IT邦幫忙