Find Jobs
Hire Freelancers

Loading a ADD-in in excel using Python issue (Bid <30$)

$10-30 USD

Stengt
Lagt ut nesten 6 år siden

$10-30 USD

Betalt ved levering
I am trying to run a macro in excel using python. The issue is that the macro needs a add-in (.xla file) which needs to be loaded before the macro runs. This add-in does not get loaded everytime, when the python code runs and tries to run the macro. So as a solution, I need to unload and load the addin using python, as we do in excel to load the addin I am trying to do this import [login to view URL] xl = [login to view URL]('[login to view URL]') [login to view URL] = True addin_path="C:\\Path\\[login to view URL]" xl.DisplayAlerts=False [login to view URL]('C:\\Path\\[login to view URL]') #Unloading and loading the add-in [login to view URL](addin_path).Installed=False [login to view URL](addin_path).Installed=True #Running the macro "Macro_run" in the Excel file xl.DisplayAlerts=False [login to view URL](Filename="C:\\Users\\[login to view URL]") [login to view URL]("Macro_file!Module1.Macro_run") xl.DisplayAlerts=False [login to view URL]() [login to view URL]() # Comment this out if your excel script closes del xl But it gives me this error "Microsoft Excel', u'Add method of AddIns class failed' in this line: [login to view URL](addin_path).Installed=False How to rectify this
Prosjekt-ID: 17212053

Om prosjektet

2 forslag
Eksternt prosjekt
Aktiv 6 år siden

Ønsker du å tjene penger?

Fordeler med budgivning på Freelancer

Angi budsjettet og tidsrammen
Få betalt for arbeidet ditt
Skisser forslaget ditt
Det er gratis å registrere seg og by på jobber
2 frilansere byr i gjennomsnitt $19 USD for denne jobben
Brukeravatar
Before creating the Excel application, copy the addin to: C:\Users\(username)\AppData\Roaming\Microsoft\Excel\XLSTART Then it will automatically load.
$10 USD om 0 dag
5,0 (9 omtaler)
3,5
3,5
Brukeravatar
Hi we could do this for you in a day. Our team consists of individuals from diversified fields and each of us having more than 5 years of experience in python. For more details check out our profile. Relevant Skills and Experience Python, excel , vba
$27 USD om 1 dag
0,0 (0 omtaler)
0,0
0,0

Om klienten

UNITED STATESs flagg
new york, United States
4,9
28
Betalingsmetode bekreftet
Medlem siden mai 6, 2015

Klientbekreftelse

Takk! Vi har sendt deg en lenke for at du skal kunne kreve din gratis kreditt.
Noe gikk galt. Vær så snill, prøv på nytt.
Registrerte brukere Publiserte jobber
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Forhåndsvisning innlasting
Tillatelse gitt for geolokalisering.
Påloggingsøkten din er utløpt og du har blitt logget ut. Logg på igjen.