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 Forms / January 2004

Tip: Looking for answers? Try searching our database.

editing custom fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robrecht - 16 Jan 2004 14:59 GMT
Hi

Yet a little question about command buttons:
Here is the code that i use:

Sub cmdStampDate_Click()

Dim objNS

Set objNS = Application.GetNamespace("MAPI")

txtnotities.Body = "**** " & Now() & " - " & objNS.CurrentUser & " **** ==>
"& vbcrlf & txtnotities.Body

Set objNS = Nothing

End Sub

On clicking the button I get a message "Objetc not found txtnotities" while
txtnotities is a textbox on my form

How to make this work

Grtz
Sue Mosher [MVP] - 16 Jan 2004 15:47 GMT
Sounds reasonable to me, since there's no indication of whether or how you
have instantiated any object named txtnotities. See
http://www.slipstick.com/dev/propsyntax.htm for the correct syntax for
working with Outlook properties and controls.
Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> Hi
>
[quoted text clipped - 20 lines]
>
> Grtz
 
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.