G
Guest
I'm having a similar problem. I keep getting the message Maria was getting
with a different website's code -- "The expression On Click you entered as
the event property setting produced the following error: Only comments may
appear after End Sub, End Function, or End Property." Like Maria, I also
copied Bill's code from
http://community.compuserve.com/n/p...yMessages&tsn=1&tid=22415&webtag=ws-msdevapps in the BrowseForFileClass.txt document.
My textbox for the directory hyperlink is called Directory_Text_Box (so I
replaced all instances of FormLetterCbo and txt.Link with Directory_Text_Box)
and the button for Browse is called BrowseBtn. My code is like this:
'On Click Event Procedure for Browse button:
Private Sub BrowseBtn_Click() ...
End Sub
'On Click Event Procedure for Directory text box:
Private Sub Directory_Text_Box_Click() ...
End Sub
'Here's where there might be a problem. I wasn't sure where to put the End
Sub:
Private Sub BrowseForFileClass()
Private Type OPENFILENAME ...
End Sub
Public Function GetFileSpec() ...
End Function
Public Property Let DialogTitle(strTitle As String) ...
End Property
Public Property Let AdditionalTypes(str AddTypes As String) ...
End Property
Public Property Let DefaultType(strType As String) ...
End Function
Public Property Let InitialFile(strIFile As String) ...
End Property
Public Property Let InitialDir(strIDir As String) ...
End Property
Private Sub Class_Initialize() ...
End Sub
Thanks for your help in advance!
with a different website's code -- "The expression On Click you entered as
the event property setting produced the following error: Only comments may
appear after End Sub, End Function, or End Property." Like Maria, I also
copied Bill's code from
http://community.compuserve.com/n/p...yMessages&tsn=1&tid=22415&webtag=ws-msdevapps in the BrowseForFileClass.txt document.
My textbox for the directory hyperlink is called Directory_Text_Box (so I
replaced all instances of FormLetterCbo and txt.Link with Directory_Text_Box)
and the button for Browse is called BrowseBtn. My code is like this:
'On Click Event Procedure for Browse button:
Private Sub BrowseBtn_Click() ...
End Sub
'On Click Event Procedure for Directory text box:
Private Sub Directory_Text_Box_Click() ...
End Sub
'Here's where there might be a problem. I wasn't sure where to put the End
Sub:
Private Sub BrowseForFileClass()
Private Type OPENFILENAME ...
End Sub
Public Function GetFileSpec() ...
End Function
Public Property Let DialogTitle(strTitle As String) ...
End Property
Public Property Let AdditionalTypes(str AddTypes As String) ...
End Property
Public Property Let DefaultType(strType As String) ...
End Function
Public Property Let InitialFile(strIFile As String) ...
End Property
Public Property Let InitialDir(strIDir As String) ...
End Property
Private Sub Class_Initialize() ...
End Sub
Thanks for your help in advance!