查找文件 可以用DELPHI 里的findFirst findNext 函数配合
var
i:integer;
searchRec:TSearchRec;
begin
ListBox1.Item.Clear;
FindFirst(Edit1.text,faAnyFile,SeachRec);
ListBox1.Item.Add(SeachRec.Name);
Repeat
i:=FindNext(SeachRec);
if i=0 then listBox1.Items.Add(SeachRec.name);
until i<>0;
end
用录制宏的方法查得: 打开的方法
App.Workbooks.Open Filename:= _
'C:/Documents and Settings/Administrator/My Documents/cccccccccc1.xls'
app.Sheets('Sheet1').Select