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 / December 2007

Tip: Looking for answers? Try searching our database.

Work on Document when VBA form is showing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jennie - 28 Dec 2007 14:43 GMT
I'm very new to VBA but think this should be easy to do....I have a
"QC" form that pops up OnClose of document, it scrolls through the
bookmarks in document asking to user to confirm info. I'd like the
user to be able to click on document and change text if need be, but
the form has control or focus....how can the user click on document
and change while form is present (when they are done, they will click
close on form and it will continue on).
Thanks in advance!
Jennie
David Sisson - 28 Dec 2007 18:19 GMT
When you bring up the userform,

Userform1.Show False

False sets the ShowModal property to False, allowing editing of
document.

(Doesn't work in Word 97)
Jennie - 30 Dec 2007 16:05 GMT
> When you bring up the userform,
>
[quoted text clipped - 4 lines]
>
> (Doesn't work in Word 97)

That works partially but word also pops up the screen "do you want to
save changes" prior to the QC form being acted upon.
Any suggestions for that? Thanks again!
David Sisson - 31 Dec 2007 13:16 GMT
> That works partially but word also pops up the screen "do you want to
> save changes" prior to the QC form being acted upon.
> Any suggestions for that? Thanks again!

If they change the form, of course it's going to ask to save.  You do
want the changes to be saved?

Personally, I wouldn't do this in the close event.  I would add a
menubar item that says "Check doc".  Let the code check the document,
then manually let the user close the document and save changes.

But then, I really don't understand how your document flows.

Show me the code in the Close event. Or expound on what you're trying
to accomplish.

Rate this thread:






 
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.