read all comments in excel using python - excel

I am trying to read an excel file which has lots of comments.
what i would like to do is to get all cells with comments using pytonic way.
the only thing i found was how to add, resize, etc comments to excel
http://xlsxwriter.readthedocs.io/example_comments2.html
I cant find a way to search all comments in excel.
can someone throw me a way of do it?

Related

Excel and TestStand

Can I choose manually which cells to read from Excel in TestStand?
I know I can read files from Excel using property loader in TestStand. But the excel file has a format which TestStand can read and I cannot really go on changing my work Excel files as they are too big. Please let me know if there is a solution.
I am new to TestStand and am trying to figure this out. I am able to read and write from TestStand to excel, but not in the format in which the excel files I work with already exists. Could anyone give me a hint as to how I should go about this?

Edit word document through excel

i am trying to have VBA open up a specific word document (this document is protected but has boxes where you are able to edit text). i will then need to fill out said word documents editable areas with variables in the excel document. i have no idea where to start with this code and was posting to see if this is possible and how i could do it.
Additional note. Would it be easier to have vba create a whole new word document in the code so it can just add in all the text?
Since there isn't any code. I'm not sure what stage you're at in this but, from how I read your question you have two ways to do this. Either have your vba code in the word document that opens an Excel file to read cells or have the excel document create a word document with information already filled out. I would recommend using Word to read Excel.
This Question has information about setting fill-able values in Word. There are also a lot of resources out there to find out how to get cell values and open excel documents using VBA.
All this being said. I would say you should probably look for alternatives to all of this. Such as powerapps connecting to an excel file or change your excel file to a SQLExpress database to use that in finding data. The reason I recommend this is because it's much more scalable.

VBA to save multiple PDF files from one location to another

I would like to use Excel VBA to copy multiple (157) PDF's from various locations (I have all the paths) and simply save them into one location.
I'm very much a beginner with VBA and need some assistance, hopefully its quite simple.
I tried myself and got as far as using the .FollowHyperlink method although this opens the document which would not be practical for 157 documents. Any help would be much appreciated
Great to see that you're trying to learn how to code with vba.
I think it is possible in VBA.
Try and take a look at move files from one folder to another the question is about moving .xlsx files but if you change the .xlsx to .pdf it should work
from my personal experience I don't like using vba for this kind of job.
You could try other coding languages like python.

Importing some parts of a lot of text files to excel with VBA

I am new to VBA so I need your advices. I need to read data from a lot of text files into excel. Text files are like that:
What I have to do is, I need to read every files' all Feature types and parametres actual values. The format of excel should be like that:
I tried some codes by adapting to my situation but I couldn't do. Do you have an advice about how can I do that? Any advice is appreciated.

Handling complex numbers in Excel spreadsheet

I doubt an Excel spreadsheet can handle this but it's worth asking, since I have been trying and searching for a long time with no success.
Entering this into a cell:
=complex(abs(-1.5*(-1.5)^(-1.5))),0)
and the cell output is #NUM!
The output should be: 0.8164966
I played with this a bit and didn't get anywhere - this article may explain why.
Link
it's complicated, and I think it's more than an excel problem
The following pdf has a nice write-up for using complex number functions in excel.
https://ccnet.stanford.edu/cgi-bin/course.cgi?cc=ee246&action=handout_download&handout_id=ID11300955936304
Seems like you have made a mistake inserting the parentheses.
The correct form is:
=COMPLEX(ABS((-1.5)*((1.5)^(-1.5))),0)
=0.816496580927726
This runs well in Excel 2013.

Resources