activateTargetDocument() - vba

I believe I may have mistakenly overwrote the macros for activateTargetDocument().
Is there a way to find the relevant code for replacement?
I have looked at https://learn.microsoft.com/en-us/office/vba/api/Word.Document.Activate.
This was the closest I could get to the macros.
Please assist,
Thank you

Related

SQL: Sublime-->PHPMyAdmin formatting error?

this is probably a very rookie mistake (I`m totally new to SQL), but I hope you can help me. I have written some SQL code in Sublime Text. When trying to paste it into PHPMyadmin (web) I get some error messages. I think the code is right, so it seems like something happened to the formatting. Does anybody have any clues what I might have done wrong?

ExecuteMso error

This question may have been asked before.
I have tried using ExecuteMso in VBA but returns Method or data member not found.
Not sure what I am doing wrong or if there is an issue using this code as using excel on a Mac. I have also tried this on a windows version of Excel however it is a very old version (if that makes a difference?)
Any help or tips regarding this would be great.
Thanks in advance
The following sample executes the Copy button.
Application.CommandBars.ExecuteMso(“Copy”)
Otherwise, post what you have tried and what is giving you the problem.

Comments that control uncrustify behaviour

In this question (https://stackoverflow.com/questions/15097501/can-uncrustify-be-prevented-from-modifying-certain-sections-of-code) i learned that i can use *INDENT-OFF* to exclude uncrustify action on certain parts of code.
Unfortunately i was not able to find this information anywhere else.
Does anybody know where i can look this up? Are there other comments which control uncrustifiy behaviour?
The *INDENT-ON* and *INDENT-OFF* are defined in the uncrustify_types.h file in the source code
See also Ben Gardner's comment: https://sourceforge.net/p/uncrustify/bugs/343/#0394

Does MS Word have an equivalent of Range.GetSpellingSuggestions for grammar?

In Microsoft Word 2013 VBA, you can call GetSpellingSuggestions on a Range that includes a spelling error to get a collection of (a) what the spelling error is and (b) what the proposed suggestions are. Is there anything equivalent for grammatical errors? I called GetSpellingSuggestions on a Range with only a grammatical error and got back wdSpellingCorrect with no suggestions.
This post from 2004 says Word doesn't provide that information to VBA, but I'm wondering if Microsoft has added one since then. I've looked on MSDN and SO and haven't found an answer. CheckGrammar won't work for me since I'm rolling my own UI for the checker. Thanks!
Well, looks like the answer is no :/ . Posting this to get the question off the Unanswered lists. If you happen across this and have some information, please post another answer! Thanks!

New Line Not Working on Windows Notepad (SAP ABAP)

Tried CL_ABAP_CHAR_UTILITIES=>CR_LF, CL_ABAP_CHAR_UTILITIES=>NEWLINE.
Both work on NotePad++ and Excel 2010 but not on Notepad.
Any hints?
The reason is that I made a wrong definition of CR_LF. Please check my blog for the detailed explanation.
http://www.dsun.us/node/60
I made a similar mistake yesterday. I think I need to take a break now.