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 / Outlook / Programming VBA / November 2007

Tip: Looking for answers? Try searching our database.

Outlook Script: Who to know I and item is used by someone

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bbnimda - 30 Nov 2007 09:02 GMT
Hi All,

To prevent conflict in using my perso Forms, I think about using something
like a flag

I think about using à personal field to put the name of the current user and
release this value when the file is closed

etc...

But perhaps a Built'in fuction can do this ....

any idea  Sue ?

Signature

http://bensoft.miniville.fr/

Sue Mosher [MVP-Outlook] - 30 Nov 2007 13:16 GMT
YOu can return the current user in VBA or VBScript behind a custom form with a call to Application.Session.CurrentUser.

Signature

Sue Mosher, Outlook MVP
  Author of Microsoft Outlook 2007 Programming:
    Jumpstart for Power Users and Administrators
   http://www.outlookcode.com/article.aspx?id=54

> Hi All,
>
[quoted text clipped - 9 lines]
>
> any idea  Sue ?
bbnimda - 30 Nov 2007 14:06 GMT
Excuse me Sue I didn't explain may sefl correctly

here is the situation
Server Exchange  2003  SBS   &    +/- 5 Outlook 2003
we're 5/6 users using outlook2003  over Lan

User A  on computer A  is using  Outlook 2003  he open the contact item
"John Do" and he is updating some information

User B on computer B open the same contact item 10 sec after User A ,  User
B want to modify something and save while USER A is still updating the
contact item

How do I know from computer B accout UserB  that this Item is currently busy
(User by User A)

I hope this example is more explicit

thks

Actually I use a workarroud solution by putting the name of current user in
a field and save the item
When the item is release I flush that field

When someone open the item, if the field is emplty I allow all operation
otherwise i only allow to see the contact item

this work but...
I have to perform save item  twice (at the opening / closing)  even if the
user modify nothing on the contact item

YOu can return the current user in VBA or VBScript behind a custom form with
a call to Application.Session.CurrentUser.

Signature

Sue Mosher, Outlook MVP
  Author of Microsoft Outlook 2007 Programming:
    Jumpstart for Power Users and Administrators
   http://www.outlookcode.com/article.aspx?id=54

> Hi All,
>
[quoted text clipped - 10 lines]
>
> any idea  Sue ?
Sue Mosher [MVP-Outlook] - 30 Nov 2007 15:39 GMT
Use the Item_Open event to stamp user information into a custom property and to check the current value of that property. Then the Item_Close event to clear the user stamp.
Signature

Sue Mosher, Outlook MVP
  Author of Microsoft Outlook 2007 Programming:
    Jumpstart for Power Users and Administrators
   http://www.outlookcode.com/article.aspx?id=54

> Excuse me Sue I didn't explain may sefl correctly
>
[quoted text clipped - 44 lines]
>>
>> any idea  Sue ?
 
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.