Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2005

Tip: Looking for answers? Try searching our database.

Open a form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alvin Hansen - 16 Oct 2005 13:04 GMT
Hi'

How can i make it so my form open  when i open
the document

Hope some one can help

alvin
Tony Jollans - 16 Oct 2005 14:18 GMT
Assuming you mean a VBA Userform and not a Word Form, you need to code
UserFormName.Show in either an AutoOpen macro or a Document_Open Event
macro.

AutoOpen macros can go in any standard code module (just call the procedure
AutoOpen). Document_Open Event macros must go in the ThisDocument class
Module (select Documnet from the left hand dropdown in the main VBE code
window, and then Open from the right hand dropdown). Both may go either in
your document or its Template, depending on requirements.

--
Enjoy,
Tony

> Hi'
>
[quoted text clipped - 4 lines]
>
> alvin
Alvin Hansen - 16 Oct 2005 14:29 GMT
thanks
But can't use it anyway, because when form open i can't use word
so have to do something else.
i write about this in "using macros"

thanks
Alvin

"Tony Jollans" skrev:

> Assuming you mean a VBA Userform and not a Word Form, you need to code
> UserFormName.Show in either an AutoOpen macro or a Document_Open Event
[quoted text clipped - 18 lines]
> >
> > alvin
Tony Jollans - 16 Oct 2005 15:01 GMT
Sorry, I don't understand what you mean.

--
Enjoy,
Tony

> thanks
> But can't use it anyway, because when form open i can't use word
[quoted text clipped - 28 lines]
> > >
> > > alvin
Doug Robbins - 16 Oct 2005 14:29 GMT
Or if you mean when you create a new document, the macro should be named
AutoNew and be located in the template that is used as the basis of the
document.

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

> Hi'
>
[quoted text clipped - 4 lines]
>
> alvin
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.