msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Word docs

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise
Author Message
John



Joined: 04 Oct 2007
Posts: 12

PostPosted: Sun Sep 21, 2003 8:32 pm    Post subject: Word docs Reply with quote

Hi

I have a feature to open word documents from my vb app. Is it possible that
when a user saves a word document, my vb app gets the name under which the
document is saved and the date and time of saving, so I can keep a history
of all word documents?

Thanks

Archived from group: microsoft>public>vb>enterprise
Back to top
View user's profile Send private message
xyz



Joined: 04 Oct 2007
Posts: 12

PostPosted: Mon Sep 22, 2003 3:39 pm    Post subject: Re: Word docs Reply with quote

Yes,

Decalre your (Word) variable WithEvents
(Private WithEvents obj As Word.Application)
You'll now have the events:

Private Sub obj_DocumentBeforeSave(ByVal Doc As Word.Document, SaveAsUI As
Boolean, Cancel As Boolean)

End Sub

Private Sub obj_DocumentChange()

End Sub

and much more..

"John" wrote in message@tk2msftngp13.phx.gbl...
> Hi
>
> I have a feature to open word documents from my vb app. Is it possible
that
> when a user saves a word document, my vb app gets the name under which the
> document is saved and the date and time of saving, so I can keep a history
> of all word documents?
>
> Thanks
>
>

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group