at the moment im doing it like this..
Dim test As String
test = Fill_Form()
and it executes the Fill_Form function, but is there any other way i can do it instead of having to declare a dim string every time??
Printable View
at the moment im doing it like this..
Dim test As String
test = Fill_Form()
and it executes the Fill_Form function, but is there any other way i can do it instead of having to declare a dim string every time??
if you don't care about the value it returns you could just doVB Code:
Call Fill_Form
Sure. Something like
Msgbox Fill_Form
In other words you can use Fill_Form just as if it were a string (which is what I assume it returns).
it doesnt return anything, it just fills the form on the webbrowser, e,g,
Public Function Fill_Form()
wb.blah blah blH
End Function
Then you could make it a Sub ibstead of a Function, but in any case then just
Fill_Form
will work.