sumGirl wrote:
Is it possible to use a hyperlink to call a vbs sub? I have seen folks
using javascript to do this, but I cannot make it work with vbs and I
need to.
Please no "you should use javascript" answers. Unfortunately I am
where I am and I have to use vbs.
It sounds like you already know you shouldn't do this in 99% of all
circumstances, so I'll just provide you with the HTML (which is
actually using a function, not a sub, but it may be what you need):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">
<head>
<title>Calling VBS on the Client-Side</title>
<script type="text/vbscript">
function helloWorld
msgbox "Hello World"
end function
</script>
</head>
<body>
<a href="vbscript
:helloWorld">Click me!</a>
</body>
</html>
--
Google Blogoscoped
http://blog.outer-court.com