How to open a macro given word document, like a docx the abilty to be viewed in RTB!!
Dear VBFormers,
I wish to have a docx but then it has to have the abiltiy to fire up marcos, that has been written in VBA for Office and so on, a document that i wrote in Word 2016 Pro. To then be viewable in a RTB Window. I have heard it's works around the command property: LoadFile, but then i am not quite so sure on that one, because it comes up with a none readonly property error and thus haults the program from running in runtime section. My version of Wordpad does support docx, which i have seen on the open and save dialogboxes, just before doing this thread of mine.
!! Thanks in advance !!
Richard Graeme Ambra on the Thread
Re: How to open a macro given word document, like a docx the abilty to be viewed in R
Word VBA macro's only work directly from Word or can be called when doing Word Automation.
I don't thing showing a DOCX in a RTB control without converting the DOCX to a RTF file is not possible.
Using the RTB control to execute VBA macro's is also not possible.
Re: How to open a macro given word document, like a docx the abilty to be viewed in R
I have seen no documentation or blog posts from Microsoft to suggest that loading/saving DOCX markup has been added to any version of the RichEdit libraries. They probably just added some format conversion logic to Wordpad in recent releases.
Even if RichEdit support for DOCX did exist... it seems unlikely that Word macro support would be included.
Re: How to open a macro given word document, like a docx the abilty to be viewed in R
Re: How to open a macro given word document, like a docx the abilty to be viewed in R
DOCX specifically can not contain any VBA macros, you would have to saveAs DOCM