VBSããVBAãå®è¡ãã¦ã¿ã
VBSã¨VBAã§ãããããã¼ã«ãä½ã£ã¦ããã®ã§ããã
両æ¹ã¨ãä¸åº¦ã«å®è¡ãããã¨æããVBSããVBAãå¼ã¶äºã«ãã¦ã¿ã¾ããã
VBSã§VBAã®ãã¯ãå¼ã³åºãã®ãã¿ã³ãæ¼ä¸ããä¿åããã¨ããã¾ã§ãè¡ãã¾ãã
Excelã®Applicationãªãã¸ã§ã¯ãã§ãããExcel.Applicationãã®ãªãã¸ã§ã¯ããä½æãã¾ãã
Dim ExcelApp Dim ExcelBook Dim FilePath FilePath = "ExcelVba.xls" Set ExcelApp = CreateObject("Excel.Application") Set ExcelBook = ExcelApp.Workbooks.Open(FilePath) ExcelApp.ActiveWorkbook.Worksheets("ãã¯ãå¼ã³åºãã®ãã¿ã³ã®ããã·ã¼ãå").select ExcelApp.Visible = True ExcelApp.Run "ã·ã¼ãå.ãã¿ã³_Click()" ExcelBook.Close True ExcelApp.quit Set ExcelApp = Nothing Set ExcelBook = Nothing
èªååãã¦æ æ°ã«ãªããã¨ããã¯ã©ãã©ãæ æ°ã«ãªã£ã¦ããããã§ãã¾(´â½ï½;)ã