Hello Everyone,
I managed to get the textbox values in to the word document using smozgur method.
However, in my userform, I have a listbox with 3 col and 6 row.
So I inserted a table in my word and apply the same method.
When I used the above codes, only the first text of first column is showing. Any idea why?
Thank you in Advance!
I managed to get the textbox values in to the word document using smozgur method.
- Select #Date# range on the Word document.
- Click Insert tab on Ribbon and click Bookmark.
- Enter the bookmark name, "datefield" (or whatever you like).
- Click Add, then the Bookmark dialog is closed.
VBA Code:
WordDoc.Bookmarks("datefield").Range.Text = Me("Textbox").Value
However, in my userform, I have a listbox with 3 col and 6 row.
So I inserted a table in my word and apply the same method.
When I used the above codes, only the first text of first column is showing. Any idea why?
VBA Code:
WordDoc.Bookmarks("Target").Range.Text = Me("Listbox1").Value
Thank you in Advance!