Sample

LuaCOM

next up previous contents Next: 6.3 Lua Extended API Up: GetEnumerator Previous: Return Values   Contents

Sample

-- Prints all sheets of an open Excel Application
excel = luacom.GetObject("Excel.Application")
e = luacom.GetEnumerator(excel.Sheets)
s = e:Next()
while s do
  print(s.Name)
  s = e:Next()
end



Fabio Mascarenhas de Queiroz 2005-01-07