thanks Jie, this simple to understand that it is possible modify data in excel with Pyton , no need VBA
@pacerthanyalak22513 жыл бұрын
Thank you for preparing the awesome video. This video is very easy to understand. I have the motivation to continue learning python.
@pimalanda78933 жыл бұрын
Thank you thank you. Now I know how to use VBA Object modele in my Python code. I search this many years. I didnt think just to take from Microsoft doc. So simple.
@krasimirangelov83192 жыл бұрын
Thank you. It has been of great help.
@jiejenn2 жыл бұрын
Glad the video helped.
@ComputerScienceSimplified3 жыл бұрын
Awesome video, keep up the amazing work! :)
@igormaricic70932 жыл бұрын
thank you
@vectortonto12 жыл бұрын
You should add chapters to your video. Makes it more useful. Thanks
@krishna8382 жыл бұрын
Hi Jie, Can you tell if pywin32 can help with the below use case? 1.I want to import Excel and read as Dataframe 2.Then do some Spacy based text analysis. I will also use other packages. 3.Finally store the results (scores) in New columns 4.Export the Excel
@jiejenn2 жыл бұрын
Pretty sure it is possible. Essentially you are just referencing Excel application in Python, it doesn't interpret other things you do.
@rayo2436 Жыл бұрын
Nice, What is the difference with xlWings? which is better? Tranks!!!
@jiejenn Жыл бұрын
xlwings is just a wrapper around pywin32 which offers a simpler usage to work some of the Excel models.
@rayo2436 Жыл бұрын
@@jiejenn Thanks bro :)
@marvynrodriguez68443 жыл бұрын
Thanks for this video! Could you advise which would be the best way to copy data between different books? My main goal would be to create a database by getting data from various excel books in just one. Thanks in advance!
@jiejenn3 жыл бұрын
If you are just importing data from Excel files to a database, I would go with pandas.
@abdulaimohamed82812 жыл бұрын
Great video! How do I dynamically copy the range from A1 to E5 without specifying E5? like in VBA you could start from A1 and do xldown, xlright...
@jiejenn2 жыл бұрын
In Python, you would fetch the last row number as LastRow = wsEntry.Cells(wsEntry.Rows.Count, "A").End(-4162).row where -4162 represents xlUp numerate value. docs.microsoft.com/en-us/office/vba/api/excel.xldirection
@leonardrutaquio3963 жыл бұрын
can i also put formula and return the value instead of none?
@jiejenn3 жыл бұрын
Can you be more specific?
@zaferaslan9122 жыл бұрын
Thanks
@jiejenn2 жыл бұрын
Glad the video helped.
@rauldempaire53303 жыл бұрын
Could this work with LibreOffice Calc as well? Thank you for your reply...
@jiejenn3 жыл бұрын
I don't use LibreOffice, but looks like you can run Python script directly from the app. help.libreoffice.org/6.3/en-US/text/sbasic/python/main0000.html
@rauldempaire53303 жыл бұрын
@@jiejenn Merci beaucoup!
@TheNeilsolaris2 жыл бұрын
Will this work with Excel 2007, do you know? Thanks.
@jiejenn2 жыл бұрын
Because you are directly accessing Excel application, the method will work with Excel 2003 and later.
@mypalsdontcallme3 жыл бұрын
At work I have all these different excel spreadsheets I need scan through for information. I want to create a prompt that ask for the name of the user and scans through these excel spreadsheets n then shows me predetermined useful information I would need.. is this possible with python?
@tkprotich3 жыл бұрын
Yes
@wolesam24453 жыл бұрын
How can I open another worksheet.
@jiejenn3 жыл бұрын
use workbook.add to add a new worksheet.
@umakanthsahu81223 жыл бұрын
How to bring it to foreground instead just opening in the background... Please Help....
@jiejenn3 жыл бұрын
wb.Activate
@umakanthsahu81223 жыл бұрын
@@jiejenn Actually I'm using a Word Document so when I wrote word.Activate its giving error
@umakanthsahu81223 жыл бұрын
@@jiejenn Here is my code... word = win32.Dispatch('Word.Application') print(type(word)) word.Visible = 1 print("opened") time.sleep(10) word.Quit() print("quitted") Can you help how to make it to foreground
@jiejenn3 жыл бұрын
You didn't even create the word document object. Word Application is not a Word file.
@umakanthsahu81223 жыл бұрын
@@jiejenn yes sir it's enough if my word application opens in foreground but its not instead opening in background
@soniathomase77572 жыл бұрын
Could you pls tell how do you add custom calculation on pivot table via win32com? i mean the usage of win32com.client.constants.xlPercentOfParentRow?
@jiejenn2 жыл бұрын
Your question is quite specific, it is difficult to explain in a few words. I would recommend you post your question on Stack Overflow for answers.