|
-
May 19th, 2005, 09:36 AM
#1
Thread Starter
Member
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?
-
May 19th, 2005, 06:35 PM
#2
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).
-
May 22nd, 2005, 01:37 AM
#3
Thread Starter
Member
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
-
May 22nd, 2005, 04:09 AM
#4
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|