how to import excel password file into python?How do I check whether a file exists without exceptions?Calling an external command in PythonWhat are metaclasses in Python?How do I copy a file in Python?How can I safely create a nested directory?Does Python have a ternary conditional operator?How to get the current time in PythonHow can I make a time delay in Python?How do I list all files of a directory?Does Python have a string 'contains' substring method?

Applying for jobs with an obvious scar

Are there any Saints that have miraculously overcome death (should have died, but did not)?

Software need db owner permission to master database (sql2016)

How much water can a ship take on before sinking?

Is it legal for a supermarket to refuse to sell an adult beer if an adult with them doesn’t have their ID?

Is it possible to have a career in SciComp without contributing to arms research?

How slow can a car engine run?

Pauli exclusion principle - black holes

Why is Google approaching my VPS machine?

I have found a mistake on someone's code published online: what is the protocol?

Drawing a circle with nodes shift with Tikz

Can firbolgs cast their racial Detect Magic spell as a ritual?

Locked-up DOS computer beeped on keypress. What mechanism caused that?

What could make large expeditions ineffective for exploring territory full of dangers and valuable resources?

Round command argument before using

Why does a tetrahedral molecule like methane have a dipole moment of zero?

Word for something indicating the importance of guarding it properly

Which GPUs to get for Mathematical Optimization (if any)?

Who or what determines if a curse is valid or not?

Practical example in using (homotopy) type theory

Why do space operations use "nominal" to mean "working correctly"?

What are the basics of commands in Minecraft Java Edition?

Whipping heavy cream with melted chocolate

Why were these characters absent in Spider-Man: Far From Home?



how to import excel password file into python?


How do I check whether a file exists without exceptions?Calling an external command in PythonWhat are metaclasses in Python?How do I copy a file in Python?How can I safely create a nested directory?Does Python have a ternary conditional operator?How to get the current time in PythonHow can I make a time delay in Python?How do I list all files of a directory?Does Python have a string 'contains' substring method?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I am importing excel password file into python and it's showing this error: No module named win32api. I've already installed pypiwin32.



import sys
import win32com.client

xlApp = win32com.client.Dispatch("Excel.Application")
print "Excel library version:", xlApp.Version
filename,password = 'C:UsersEbaseDocumentsPASSW.xlsx', '123456'
xlwb = xlApp.Workbooks.Open("C:UsersEbaseDocumentsPASSW.xlsx", False, True, None, "123456")

print(xlwb)


code here










share|improve this question






























    0















    I am importing excel password file into python and it's showing this error: No module named win32api. I've already installed pypiwin32.



    import sys
    import win32com.client

    xlApp = win32com.client.Dispatch("Excel.Application")
    print "Excel library version:", xlApp.Version
    filename,password = 'C:UsersEbaseDocumentsPASSW.xlsx', '123456'
    xlwb = xlApp.Workbooks.Open("C:UsersEbaseDocumentsPASSW.xlsx", False, True, None, "123456")

    print(xlwb)


    code here










    share|improve this question


























      0












      0








      0








      I am importing excel password file into python and it's showing this error: No module named win32api. I've already installed pypiwin32.



      import sys
      import win32com.client

      xlApp = win32com.client.Dispatch("Excel.Application")
      print "Excel library version:", xlApp.Version
      filename,password = 'C:UsersEbaseDocumentsPASSW.xlsx', '123456'
      xlwb = xlApp.Workbooks.Open("C:UsersEbaseDocumentsPASSW.xlsx", False, True, None, "123456")

      print(xlwb)


      code here










      share|improve this question
















      I am importing excel password file into python and it's showing this error: No module named win32api. I've already installed pypiwin32.



      import sys
      import win32com.client

      xlApp = win32com.client.Dispatch("Excel.Application")
      print "Excel library version:", xlApp.Version
      filename,password = 'C:UsersEbaseDocumentsPASSW.xlsx', '123456'
      xlwb = xlApp.Workbooks.Open("C:UsersEbaseDocumentsPASSW.xlsx", False, True, None, "123456")

      print(xlwb)


      code here







      python python-2.7






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 26 at 9:53









      Alderven

      2,4704 gold badges13 silver badges28 bronze badges




      2,4704 gold badges13 silver badges28 bronze badges










      asked Mar 26 at 9:48









      yaswanthyaswanth

      32 bronze badges




      32 bronze badges






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Did you try:



          Excel_wb = xlApp.Workbooks.Open(filename, False, True, None, password)


          It worked for me.



          If this doesn't work,
          Check this link for more details about the Open() method



          Open takes two types of password, namely:



          Password: password required to open a protected workbook.
          WriteResPassword : password required to write to a write-reserved workbook


          So in your case , is it write protected or protection on open?



          To open reserved excel file try:



          app.Workbooks.Open("filename.xls", 2, True, None, None, "secret")





          share|improve this answer

























          • showing error in importing files .what are the files require to import to run the code .i already installed pywin32

            – yaswanth
            Mar 26 at 10:10











          • You have to pass absolute path to win32, when you open the excel file,Not relative path..

            – Suraj M
            Mar 26 at 10:14











          • What error showing..?, did you close excel application at end xlwb.Save() and xlApp.Application.Quit()

            – Suraj M
            Mar 26 at 10:31











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55354075%2fhow-to-import-excel-password-file-into-python%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Did you try:



          Excel_wb = xlApp.Workbooks.Open(filename, False, True, None, password)


          It worked for me.



          If this doesn't work,
          Check this link for more details about the Open() method



          Open takes two types of password, namely:



          Password: password required to open a protected workbook.
          WriteResPassword : password required to write to a write-reserved workbook


          So in your case , is it write protected or protection on open?



          To open reserved excel file try:



          app.Workbooks.Open("filename.xls", 2, True, None, None, "secret")





          share|improve this answer

























          • showing error in importing files .what are the files require to import to run the code .i already installed pywin32

            – yaswanth
            Mar 26 at 10:10











          • You have to pass absolute path to win32, when you open the excel file,Not relative path..

            – Suraj M
            Mar 26 at 10:14











          • What error showing..?, did you close excel application at end xlwb.Save() and xlApp.Application.Quit()

            – Suraj M
            Mar 26 at 10:31
















          0














          Did you try:



          Excel_wb = xlApp.Workbooks.Open(filename, False, True, None, password)


          It worked for me.



          If this doesn't work,
          Check this link for more details about the Open() method



          Open takes two types of password, namely:



          Password: password required to open a protected workbook.
          WriteResPassword : password required to write to a write-reserved workbook


          So in your case , is it write protected or protection on open?



          To open reserved excel file try:



          app.Workbooks.Open("filename.xls", 2, True, None, None, "secret")





          share|improve this answer

























          • showing error in importing files .what are the files require to import to run the code .i already installed pywin32

            – yaswanth
            Mar 26 at 10:10











          • You have to pass absolute path to win32, when you open the excel file,Not relative path..

            – Suraj M
            Mar 26 at 10:14











          • What error showing..?, did you close excel application at end xlwb.Save() and xlApp.Application.Quit()

            – Suraj M
            Mar 26 at 10:31














          0












          0








          0







          Did you try:



          Excel_wb = xlApp.Workbooks.Open(filename, False, True, None, password)


          It worked for me.



          If this doesn't work,
          Check this link for more details about the Open() method



          Open takes two types of password, namely:



          Password: password required to open a protected workbook.
          WriteResPassword : password required to write to a write-reserved workbook


          So in your case , is it write protected or protection on open?



          To open reserved excel file try:



          app.Workbooks.Open("filename.xls", 2, True, None, None, "secret")





          share|improve this answer















          Did you try:



          Excel_wb = xlApp.Workbooks.Open(filename, False, True, None, password)


          It worked for me.



          If this doesn't work,
          Check this link for more details about the Open() method



          Open takes two types of password, namely:



          Password: password required to open a protected workbook.
          WriteResPassword : password required to write to a write-reserved workbook


          So in your case , is it write protected or protection on open?



          To open reserved excel file try:



          app.Workbooks.Open("filename.xls", 2, True, None, None, "secret")






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 26 at 10:05

























          answered Mar 26 at 9:52









          Suraj MSuraj M

          3709 bronze badges




          3709 bronze badges












          • showing error in importing files .what are the files require to import to run the code .i already installed pywin32

            – yaswanth
            Mar 26 at 10:10











          • You have to pass absolute path to win32, when you open the excel file,Not relative path..

            – Suraj M
            Mar 26 at 10:14











          • What error showing..?, did you close excel application at end xlwb.Save() and xlApp.Application.Quit()

            – Suraj M
            Mar 26 at 10:31


















          • showing error in importing files .what are the files require to import to run the code .i already installed pywin32

            – yaswanth
            Mar 26 at 10:10











          • You have to pass absolute path to win32, when you open the excel file,Not relative path..

            – Suraj M
            Mar 26 at 10:14











          • What error showing..?, did you close excel application at end xlwb.Save() and xlApp.Application.Quit()

            – Suraj M
            Mar 26 at 10:31

















          showing error in importing files .what are the files require to import to run the code .i already installed pywin32

          – yaswanth
          Mar 26 at 10:10





          showing error in importing files .what are the files require to import to run the code .i already installed pywin32

          – yaswanth
          Mar 26 at 10:10













          You have to pass absolute path to win32, when you open the excel file,Not relative path..

          – Suraj M
          Mar 26 at 10:14





          You have to pass absolute path to win32, when you open the excel file,Not relative path..

          – Suraj M
          Mar 26 at 10:14













          What error showing..?, did you close excel application at end xlwb.Save() and xlApp.Application.Quit()

          – Suraj M
          Mar 26 at 10:31






          What error showing..?, did you close excel application at end xlwb.Save() and xlApp.Application.Quit()

          – Suraj M
          Mar 26 at 10:31









          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55354075%2fhow-to-import-excel-password-file-into-python%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript