2013-04-25 31 views
0

我目前有這個簡單的代碼片段來粘貼一個引用另一個工作簿中的數組的引用。然而,我不斷收到那惱人的提示,要求我更新查找..我明確地明確了我想要的文件和它的位置,爲什麼它問我以及我如何禁用提示並使其自動執行?「更新查找」提示框

非常感謝,

Range("F2").Select 
ActiveCell.FormulaR1C1 = _ 
    "=VLOOKUP(RC[-5],'\\Linkstation\rrm\Campaign Creator\Raw Data Generators\RDG\[power Event lookups.xlsx]Sheet1'!R1C1:R10000C2, 2, FALSE)" 
Range("F2").AutoFill Destination:=Range("F2:F" & Cells(Rows.Count, 1).End(xlUp).Row) 

回答

0

http://support.microsoft.com/kb/826921

我beleive這是你在找什麼。

消息打壓,當你在Excel 2002或Excel 2003中打開工作簿來自動更新鏈接,請按照下列步驟操作:

1.On the Tools menu, click Options, and then click the Edit tab. 
2.Click to clear the Ask to update automatic links check box. 

消息打壓你時自動更新鏈接在Excel 2007中打開工作簿,請按照下列步驟操作:

1.Click Microsoft Office Button, and then click Excel Options. 
2.Click Advanced. 
3.Under General, click to clear the Ask to update automatic links check box. 
+0

這很有幫助than thanx – user1717622 2013-04-25 14:19:34