Impossible to read de Excel file

a a 81 Reputation points
2023-01-06T14:05:11.717+00:00

I have Excel version 2021
pls

It's impossible to us-it:
Exception lors de la définition de «Visible»: «Impossible d'effectuer un cast
d'un objet COM de type 'Microsoft.Office.Interop.Excel.ApplicationClass' en
type d'interface 'Microsoft.Office.Interop.Excel._Application'. Cette
opération a échoué, car l'appel QueryInterface sur le composant COM pour
l'interface avec l'IID '{000208D5-0000-0000-C000-000000000046}' a échoué en
raison de l'erreur suivante: Interface non enregistrée (Exception de HRESULT :
0x80040155).»
Au caractère Ligne:14 : 1

  • $objExcel.Visible = $false
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : NotSpecified: (:) [], SetValueInvocationExceptio
    n
  • FullyQualifiedErrorId : ExceptionWhenSetting

thank for your help
Arnold

Microsoft 365 and Office Development Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. a a 81 Reputation points
    2023-01-09T19:20:11+00:00

    L'affaire est regler

    aa

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.