M
Micah Chaney
This may be a stupid question, but I can't figure it out. I'm in Outlook
2003. I'm in a custom form and all I'm trying to do is say if objControlA
is Like "Blue" Then...
I keep getting a Runtime error on that line, and then it won't let me
modify, it shuts down Outlook altogether. Maybe it's 'cause I don't know how
to use the debugging tools. So I guess I have two questions:
1. How would I change the following statement (assume everything's already
Set)...
if objControlA.Value = "Fed Ex" Then
objControlA1.Value = "Tracking Number"
end If
to
if objControlA.Value Like "Fed Ex" Then
objControlA1.Value = "Tracking Number"
end If
So if Control A says Fed Ex Ground or Fed Ex Air or Fed Ex 3-day or Fed Ex
overnight, all those values should make A1's value "Tracking Number".
2. When I do get a runtime error, and I go to the Script Debugger screen,
and I see the line that's causing the problem, how do I change it in the
debugger screen? If that's not possible, how do I stop the seeming loop in
the error message that keeps telling me I have to debug, and won't stop
unless I shut down Outlook?
Any help is appreciated. Thanks in Advance.
2003. I'm in a custom form and all I'm trying to do is say if objControlA
is Like "Blue" Then...
I keep getting a Runtime error on that line, and then it won't let me
modify, it shuts down Outlook altogether. Maybe it's 'cause I don't know how
to use the debugging tools. So I guess I have two questions:
1. How would I change the following statement (assume everything's already
Set)...
if objControlA.Value = "Fed Ex" Then
objControlA1.Value = "Tracking Number"
end If
to
if objControlA.Value Like "Fed Ex" Then
objControlA1.Value = "Tracking Number"
end If
So if Control A says Fed Ex Ground or Fed Ex Air or Fed Ex 3-day or Fed Ex
overnight, all those values should make A1's value "Tracking Number".
2. When I do get a runtime error, and I go to the Script Debugger screen,
and I see the line that's causing the problem, how do I change it in the
debugger screen? If that's not possible, how do I stop the seeming loop in
the error message that keeps telling me I have to debug, and won't stop
unless I shut down Outlook?
Any help is appreciated. Thanks in Advance.