Как узнать существует ли страница (worksheet)?
Falk0ner, вс, 06/07/2008 - 15:35.
{ ... }
WB := Excel.Workbooks[1];
for Idx := 1 to WB.Worksheets.Count do
if WB.Worksheets[Idx].Name = 'first' then
Showmessage('Found the worksheet');
{ ... }
WB := Excel.Workbooks[1];
for Idx := 1 to WB.Worksheets.Count do
if WB.Worksheets[Idx].Name = 'first' then
Showmessage('Found the worksheet');
{ ... }
Взято с Delphi Knowledge Base: http://www.baltsoft.com/
Отправить комментарий