-2
在打開此工作簿時,將運行以下腳本,該腳本會寫入一個公式以創建指向多個工作簿的鏈接。每個工作簿寫入3列即工作簿1寫入到A,B和C以及工作簿2寫入d,E,F等。加速此vba腳本
WBNAME = "=IF(AND('\\insurance\it\FileData\Computers\Release Note\[Aliens.xlsm]iForms'!A2<>"""",'\\insurance\it\FileData\Computers\Release Note\[Aliens.xlsm]iForms'!E2=""""),'\\insurance\it\FileData\Computers\Release Note\[Aliens.xlsm]iForms'!A2,"""")"
Worksheets("All Release Items").Range("A2:A100").Value = WBNAME
WBNAME2 = "=IF(AND('\\insurance\it\FileData\Computers\Release Note\[Aliens.xlsm]iForms'!A2<>"""",'\\insurance\it\FileData\Computers\Release Note\[Aliens.xlsm]iForms'!D2<>"""",'\\insurance\it\FileData\Computers\Release Note\[Aliens.xlsm]iForms'!E2=""""),'\\insurance\it\FileData\Computers\Release Note\[Aliens.xlsm]iForms'!D2,"""")"
Worksheets("All Release Items").Range("B2:B100").Value = WBNAME2
WBNAME3 = "=IF('\\insurance\it\FileData\Computers\Release Note\[Aliens.xlsm]All Release Items'!A2<>"""",'\\insurance\it\FileData\Computers\Release Note\[Aliens.xlsm]All Release Items'!A1,"""")"
Worksheets("All Release Items").Range("C2:C100").Value = WBNAME3
目前有12個工作簿所有.XLSM和位於同一文件內路徑。 請幫忙