D
DennisE
I have assigned a HelpContextID to all TextBoxes in my Excel 2002
program, and my home-crafted help system works perfectly. When
I tried to do the same for their corresponding Labels, Excel bombed.
Would some of you set up the following very simple experiment to
confirm what I've encountered (or explain what I'm doing wrong):
Set up UserForm1 with three controls: Label1, TextBox1, and
CommandButton1. In the Properties module set the HelpContextID
for TextBox1 to 101 and the HelpContextID for Label1 to 102, say.
In the code module do the following:
Private Sub CommandButton1_Click()
MsgBox UserForm1.TextBox1.HelpContextID
MsgBox UserForm1.Label1.HelpContextID
End Sub
Sub Auto_Open()
UserForm1.Show
End Sub
Load the program and click the command button. A message
box comes up with the number 101 displayed, as it should;
dismiss the message box and then what happens to me is
that an error message comes up saying "Member not found."
-- Dennis Eisen
program, and my home-crafted help system works perfectly. When
I tried to do the same for their corresponding Labels, Excel bombed.
Would some of you set up the following very simple experiment to
confirm what I've encountered (or explain what I'm doing wrong):
Set up UserForm1 with three controls: Label1, TextBox1, and
CommandButton1. In the Properties module set the HelpContextID
for TextBox1 to 101 and the HelpContextID for Label1 to 102, say.
In the code module do the following:
Private Sub CommandButton1_Click()
MsgBox UserForm1.TextBox1.HelpContextID
MsgBox UserForm1.Label1.HelpContextID
End Sub
Sub Auto_Open()
UserForm1.Show
End Sub
Load the program and click the command button. A message
box comes up with the number 101 displayed, as it should;
dismiss the message box and then what happens to me is
that an error message comes up saying "Member not found."
-- Dennis Eisen