2013-04-25 50 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