Custom task panes are possible only in VSTO. In VBA, you can create
userforms -- see
http://www.word.mvps.org/FAQs/Userforms/CreateAUserForm.htm for a very
elementary introduction.
Better than the insertion of userform data at bookmarks, as described
there, is to put the data into document variables (members of the
document's .Variables collection). The template from which the
document is based should have DocVariable fields to display the
resulting values. These are less likely to be deleted accidentally
than are bookmarks.
If you have further questions about userforms, visit the
microsoft.public.word.vba.userforms newsgroup.
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
>I want to get some data in a Task pane but i don't know how in vba :s
>i've done this in vsto but i need it in vba
[quoted text clipped - 9 lines]
>i have to be able to see them and add them to my document.
>Anyone has some ideas?
_-Andy-_ - 05 Jul 2007 13:26 GMT
Okey thanks.
I found a way to keep the data in the userform.
Instead of closing the userform i just hide it.
So when i recall the userform all the data is still there.
This probably is a workaround but for now it'll do.
Thanks for the information.
> Custom task panes are possible only in VSTO. In VBA, you can create
> userforms -- seehttp://www.word.mvps.org/FAQs/Userforms/CreateAUserForm.htmfor a very
[quoted text clipped - 30 lines]
> >i have to be able to see them and add them to my document.
> >Anyone has some ideas?