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 / August 2006

Tip: Looking for answers? Try searching our database.

Something simple not working right

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Angyl - 29 Aug 2006 23:42 GMT
I have some minimal programming experience in Word.

I'm in school right now learning VB as well.

Outlook doesn't seem to want to play by the rules, however.  I'm trying to
start very basic in Outlook just to make sure I can make a form and command
it properly.  I've got a Command Button
and a Label called Label6

In the Form : View Code I am entering this very simple code:

Sub CommandButton1_Click()
Label6.Visible = False
End Sub

Very simple.  DEFINITELY works in Word, DEFINITELY works in Visual Studio.

Doesn't work in Outlook.  When I click the button, I'm being told "Object
required: Label6"

What change in my thinking needs to take place to make otherwise FUNCTIONING
VB code work in Outlook?
Sue Mosher [MVP-Outlook] - 30 Aug 2006 00:35 GMT
Definitely not the right syntax for Outlook, which requires you to tell it which page you're on, not which control you want to use. See http://www.outlookcode.com/d/propsyntax.htm#unbound 

Signature

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

>I have some minimal programming experience in Word.
>
[quoted text clipped - 18 lines]
> What change in my thinking needs to take place to make otherwise FUNCTIONING
> VB code work in Outlook?
 
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.