Results 1 to 5 of 5

Thread: How to open a macro given word document, like a docx the abilty to be viewed in RTB!!

  1. #1

    Thread Starter
    PowerPoster ThEiMp's Avatar
    Join Date
    Dec 2007
    Location
    Take The PCI Bus Across To The CPU!!
    Posts
    3,948

    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
    Last edited by ThEiMp; Oct 4th, 2021 at 02:27 AM.
    I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...

    |Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |

    Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...

  2. #2
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,747

    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.

  3. #3
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    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.

  4. #4

    Thread Starter
    PowerPoster ThEiMp's Avatar
    Join Date
    Dec 2007
    Location
    Take The PCI Bus Across To The CPU!!
    Posts
    3,948

    Re: How to open a macro given word document, like a docx the abilty to be viewed in R

    Crikey Moses
    I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...

    |Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |

    Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...

  5. #5
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    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
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width