Friday, November 9, 2018

VBA Macro Print Variable to Body

If you're debugging malicious macros in word documents using the Developer tab, sometimes you may get the urge to print out the contents of a variable to a Message Box

MsgBox(evilvariable)

The problem is , message boxes get truncated if the variable is too long and you can't easily copy & paste the contents into a text editor for example.

Thus I've found a better solution is to overwrite the body of the word document like so

ActiveDocument.Content = evilvariable

Works great, now you can view it and all copy & paste out to a text editor!

5 comments:

  1. This is a testimony that I will tell everyone to hear. i have been married four 4 years and on the fifth year of my marriage, another woman had a spell to take my lover away from me and my husband left me and the kids and we have suffered for 2 years until i meant a post where this man Dr, kuta have helped someone and i decided to give him a try to help me bring my love Husband home and believe me i just send my picture to him and that of my husband and after 48 hours as he have told me, i saw a car drove into the house and behold it was my husband and he have come to me and the kids and that is why i am happy to make every one of you in similar to met with this man and have your lover back to your self His email: drkutaherbalcenter@gmail.com you can also contact him or whatspp him on this +2347054547814 thank so much

    ReplyDelete
  2. All thanks to the great Priest Dr bow for helping me restore back my marriage when i taught all hope was lost.,this Priest helped me, and my relationship is now perfect. Contact for any spiritual work  (@Drbowsolutionhome1) Your partner will definitely love you email him Drbowsolutionhome@gmail.com or whatapp him +2348121786772

    ReplyDelete
  3. How I Got My Ex Husband Back..Am so excited to share my testimony of a real spell caster who brought my husband back to me. My husband and I have been married for about 6 years now. We were happily married with two kids, a boy and a girl. 3 months ago, I started to notice some strange behavior from him and a few weeks later I found out that my husband is seeing someone else. He started coming home late from work, he hardly care about me or the kids anymore, Sometimes he goes out and doesn't even come back home for about 2-3 days. I did all I could to rectify this problem but all to no avail. I became very worried and needed help. As I was browsing through the internet one day, I came across a website that suggested that Dr Aluya can help solve marital problems, restore broken relationships and so on. So, I felt I should give him a try. I contacted him and and told him my problems and he told me what to do and i did it and he did a spell for me. 48 hours later, my husband came to me and apologized for the wrongs he did and promise never to do it again. Ever since then, everything has returned back to normal. I and my family are living together happily again.. All thanks to Dr Aluya Powerful Love Spell that really works. If you have any problem contact him and i guarantee you that he will help you. He will not disappoint you. Email him at: aluya.48hoursspelltemple@gmail.com. or whatsapp him on: +2348110493039 

    ReplyDelete
  4. SPELLS THAT WORKS I am sharing this testimony to partners suffering in their relationships LOVE because there is an enduring solution.
    My husband left me and our 2 kids for another woman for 3 years. I tried to be strong just for my kids but I could not control the pains that torment my heart. I was hurt and confused. I needed a help, so i did a research on the internet and came across a site where I saw that Dr. Aluya a spell caster, can help get lovers back. I contacted him and he did a special prayer and spells for me. To my surprises, after some days, my husband came back home. That was how we reunited again and there was a lot of love, joy and peace in the family.
    You can as well contact Dr.  Aluya  , a powerful spell-caster for solutions on his contact aluya.48hoursspelltemple@gmail.com or directly on Whats App: +2348110493039

    ReplyDelete
  5. RELIABLE BUSINESS/HOME/COMPANY/PROJECT/PERSONAL LOAN? AFFORDABLE LOAN IS HERE FOR YOU TODAY Email profdorothyinvestments@gmail.com

    We are financial consultants providing reliable loans to individuals and funding for business, home and projects start up. Are you tired of seeking loans or are you in any financial mess. Do you have a low credit score, and you will find it difficult to get loans from banks and other financial institutions? then worry no more for we are the solution to your financial misfortune. we offer all types of loan ranging from $5,000.00 to $2,000,000.00USD with a low interest rate of 2% and loan duration of 1 to 33 years to pay back the loan secure and unsecured. Are you losing sleep at nights worrying how to get a Legit Loan Lender? Contact us via Email: profdorothyinvestments@gmail.com

    Do you have a bad credit? Do you need money to pay bills? Do you need loan to buy, refinance or renovate your home? Is it necessary to start a new business? Do you have an unfinished project due to poor funding? Do you need money to invest in any specialty that will benefit you? MRS. DOROTHY LOAN INVESTMENTS aims is to provide excellent professional financial services which include the followings

    * Personal loans * Business loans
    * Home loans * Farm Loans
    * Education loans * Debt consolidation loans
    * Truck Loans * Car Loans
    * Hotels Loans * Refinancing Loans
    * Venture capital and many more.

    We are certified, reliable, financially powerful, fast and dynamic, with no credit check and offers a 100% guarantee loans and finances

    Best Regards
    Prof. Dorothy Pilkenton Jean
    profdorothyinvestments@gmail.com

    ReplyDelete