Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Opening files...
I need to open an hta file using visual basic. Can't figure it out.
Please help! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Opening files...
I don't know what an hta file is, but it isn't listed as a supported file.
-- Regards, Tom Ogilvy "JD" wrote in message ... I need to open an hta file using visual basic. Can't figure it out. Please help! |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Opening files...
From the VBE window, go to Tools References and set a reference to the
"Windows Script Host Object Model" Something like the following should launch your hta file: Sub RunHTAfile() Dim wsh As Object Set wsh = CreateObject("WScript.Shell") wsh.Run "C:\test\Page1.hta" End Sub Steve "JD" wrote in message ... I need to open an hta file using visual basic. Can't figure it out. Please help! |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Opening files...
Tom,
An hta file is essentially an html file that gets run by mshta.exe rather than Internet Explorer or other browser. There are a few extra features of hta files not found in standard html but a major advantage (or risk) is that the page can run scripts and controls without the security restrictions imposed by the browser based on the user's security settings. Steve "Tom Ogilvy" wrote in message ... I don't know what an hta file is, but it isn't listed as a supported file. -- Regards, Tom Ogilvy "JD" wrote in message ... I need to open an hta file using visual basic. Can't figure it out. Please help! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Opening files | New Users to Excel | |||
show most recent files first when opening excel files | Excel Discussion (Misc queries) | |||
Opening Quattro Pro for Windows files (*.WB1 Files) using Excel 20 | Excel Discussion (Misc queries) | |||
How can I view files chronologically when opening multiple files | Excel Discussion (Misc queries) | |||
Opening Files | Excel Programming |