12-06-2011, 06:08 PM
Code:
function open(strURL)
Dim oexplorer
Set oexplorer=createobject("InternetExplorer.application")
oexplorer.visible=true
oexplorer.navigate strURL
Set open=oexplorer
Set oexplorer=nothing
End Function
Call open("http:\\yahoo.in")
I think this approach will make the function dynamic.
Regards,
Sankalp