Excel Version

JPHSCJPHSC Member Posts: 67
Does anyone know if its possible to read the current excel version from the automation server ?
I need to make a difference between excel 2003 and 2007 users ?

Comments

  • garakgarak Member Posts: 3,263
    Do you mean this :?:
    Name	DataType	Subtype	Length
    RecAutomations	Record	Automation Server	
    
    RecAutomations.reset;
    RecAutomations.SETfilter(Name,'@*Excel*');
    if RecAutomations.findfirst then
      message(RecAutomations.Name + ' ' + RecAutomations.Version);
    

    or this
    Name	DataType	Subtype	Length
    ExcelApp	Automation	'Microsoft Excel 11.0 Object Library'.Application	
    
    if isclear(ExcelApp) then
      create(ExcelApp);
    
    message(ExcelApp.Version);
    

    Regards
    Do you make it right, it works too!
  • JPHSCJPHSC Member Posts: 67
    The second one, i cant believe i missed this ...
    Thanks .
  • garakgarak Member Posts: 3,263
    ;-)

    Please write [solved] infront of your subject in your first post.

    Thanks
    Do you make it right, it works too!
Sign In or Register to comment.