Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML / VBA 1

Status
Not open for further replies.

alpweb

MIS
May 1, 2009
2
CA
i have created HTML page using word

in word i have placed a button and in click event i have placed a code in vbe.

for this i right click on button , view code and have placed a code

Private Sub CommandButton1_Click()
MsgBox "AAAA"
End Sub

and saved document , which is test.mht

now when i double click on that mht it opens in IE6 and when i click on button, nothing happens, but i go in editor mode ie. from word it runs perfect

can anyone tell me what's wrong with it.

above is just an example , what basically i want to do is i want to develope a tool, where i want to use some functions and procedure by inputing some values and results are displayed on HTML page again

Thanx in Advance


 
look at hyperlinks

Never give up never give in.

There are no short cuts to anything worth doing :)
 
How about changing the extension to .hta (hypertext application).
Essentially a container for vbs, vba, js or any windows scripting host language (just like vb/vba but with a different object model)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top