Edit Microsoft Word simple macro
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

I just need to edit this MS Word macro, so that it will perform a word-count function

See ZIP file for job description video and macro-code:

http://tinyurl.com/y6slkwfn

awarded to mashtullah
Tags
macro

Crowdsource coding tasks.

1 Solution


I have done the H2 word count plus deletion of all the counts. Below is the link to the working word document.

https://drive.google.com/open?id=1gR-o3wS7qXWd9g6REEEnpJZ_JncMzgNV

UPDATE
removed the extra function, below is the updated document

https://drive.google.com/open?id=1zE7GFg2HT81NcpKf6hwXrAlOdeUmZKB7

Sorry for the late reply i was abit held up at work and forgot this.
Incase of anything let me know.

UPDATE: After bug discovery

Thanks for informing me of the bug, i rewrote the word count procedure and did away with the loop which was causing the crush when no words are under a particular heading. Below is the link to the two documents, first the original document with the re-written procedure and the crash document with the re-written procedure.

https://drive.google.com/open?id=1HQzPhgN_OQQN36wjaxQSGOlG4-uHqFuF

Thanks. Can you just delete every other function in the DOC. I just want 2 functions that do everything. One to add wordcounts and one to delete wordcounts (from h1 and h2). e.g. just make two functions called: H1andH2wordCounter() and H1andH2wordDeleter()
tonloc 6 months ago
I have updated my answer
mashtullah 6 months ago
cool thanks
tonloc 6 months ago
It appears that this code will hang on some docs. e.g. i think it gets confused, when there are no words in the H1 part. can you check this out http://tinyurl.com/y58lvq9d
tonloc 6 months ago
Let me work on this, thanks for getting that bug
mashtullah 6 months ago
I have updated my solution, check it out and let me know, incase of any more bugs, am just a comment away...
mashtullah 6 months ago
I have updated my solution, check it out and let me know, incase of any more bugs, am just a comment away...
mashtullah 6 months ago
Thanks, I sent a tip. I wonder if you can make it so that the STATE of the tree is maintained. (it might not be possible) but check it out http://tinyurl.com/y6e6bjcd
tonloc 6 months ago