Results 1 to 4 of 4

Thread: VB6.olb and msvbvm60.dll\3 references

  1. #1

    Thread Starter
    Member
    Join Date
    May 2005
    Posts
    59

    VB6.olb and msvbvm60.dll\3 references

    i'm programming VB through Microsoft Outlook 2000 (VB editor 6.0) and the
    private sum Form_Load()
    doesn't work
    the same code works in regular VB editor 6.0, but in M.Outlook doesn't.

    can it be coused by lack of come reference?

    references that i have i microsoft outlook vb editor:
    visual basic for applications
    microsoft outlook 9.0 object library
    OLE Automation
    microsoft forms 2.0 object library
    microsoft comm control 6.0
    references that i don't have in the M.Outlook, but do have in regular VB editor:
    visual basic for runtime objects and procedures
    visual bacis objects and procedures

    in case the answer is "yes": where can i download this references?

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VB6.olb and msvbvm60.dll\3 references

    Outlook uses VBA rather than VB (similar, but quite different), so the "missing" references aren't an issue.

    The problem is that the Form_Load event is not used in the situation you are trying to use it (I presume suM rather than suB is a typo).

  3. #3

    Thread Starter
    Member
    Join Date
    May 2005
    Posts
    59

    Re: VB6.olb and msvbvm60.dll\3 references

    hi, thanks, for the answer.
    it's suB instead of suM

    i try to use this code in Microsoft Outlook:

    Private Sub Form_Load()
    Form1.Caption = "App1"
    With MSCOMM1
    .Handshaking = 2 - comRTS
    .RThreshold = 1
    .RTSEnable = True
    .Settings = "9600,n,8,1"
    .SThreshold = 1
    .PortOpen = True
    ' Leave all other settings as default values.
    End With
    Command1.Caption = "&Send"
    Text1.Text = "Test string from App1 "
    End Sub

    Private Sub Command1_Click()
    MSComm1.Output = Text1.Text
    End Sub

    Private Sub Form_Unload(Cancel As Integer)
    MSComm1.PortOpen = False
    End Sub


    Why cann't i use the Form_load in my case?
    Is there any other ways that i can write something similar in VBA ?

    10x

  4. #4

    Thread Starter
    Member
    Join Date
    May 2005
    Posts
    59

    Re: VB6.olb and msvbvm60.dll\3 references

    10x, i've already got the answer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width