cjmitton
07-27-2018, 03:16 AM
I'm using Word 2016 (32bit) and want to display a selected word document (.docx) in a text box on a userform to 'preview' the contents of that document before they select it. It will then insert in to the current active document the selected document.
From previous macro's I have created I can select a folder and display its content in a listbox (filtered to .docx only). I want to use this so they can see whats selected before inserting it in to the document. I don't want to open a new word instance and understand that the 'formatting' of the word document will not come through on the 'preview' its more for a reminder of content to assist with selection.
So I need assistance with the code to show a word document in a text box and if possible limit the number of characters to 500 (for example) just in case there are some massive documents to be displayed. I've done a far amount of googling and I'm either using the wrong terminology (which is highly probable) or this is not done in VBA that often!
Thanks.
From previous macro's I have created I can select a folder and display its content in a listbox (filtered to .docx only). I want to use this so they can see whats selected before inserting it in to the document. I don't want to open a new word instance and understand that the 'formatting' of the word document will not come through on the 'preview' its more for a reminder of content to assist with selection.
So I need assistance with the code to show a word document in a text box and if possible limit the number of characters to 500 (for example) just in case there are some massive documents to be displayed. I've done a far amount of googling and I'm either using the wrong terminology (which is highly probable) or this is not done in VBA that often!
Thanks.