Re: Security Startup Dialog
- From: teresaeiben@xxxxxxxxx
- Date: Mon, 3 Mar 2008 06:49:06 -0800 (PST)
On Feb 29, 9:49 am, Tom van Stiphout <no.spam.tom7...@xxxxxxx> wrote:
On Fri, 29 Feb 2008 04:43:23 -0800 (PST), teresaei...@xxxxxxxxx wrote:
HTML page? Do you mean a file with a .htm extension, the extension
typically used for static web pages?
If so, there are MUCH simpler solutions.
If you like to write in Javascript and stay with web-like technologies
you could create a HTA application. CreateObject would not work, but
something like this would:
var objXlApp = new ActiveXObject("Excel.Application");
var objXlWb = objXlApp.Workbooks.Open(strFile);
var objXlWs = objXlWb.Sheets("Sheet1")
If you like to write in vbScript, use the Windows scripting host
(wscript.exe). I took your code and saved it in Notepad as test.vbs,
then ran it from the Run prompt as wscript.exe test.vbs
and it worked. At least CreateObject did. You're on your own with
setting macro security. I would be surprised if it was as simple as
o.automationsecurity=1
but I can easily be persuaded by working code :-)
-Tom.
I'm changing from excel to using an html page to open tons of db at
work.
After reading tons of posting about this subject, for simplicity sake
I need the code to run on startup, to change the security settings to
low, so users don't get the message "Some files can harm your
computer". any way I founds this: which I put on the load of the
switchboard; using 97 still. I do NOT get this error when using excel
to open db, just html. Since there are tons of users and db, having
users change their security setting to low in not an option.
dim o
set o=createobject ("Access.Application")
o.automationsecurity=1 ' set macro security LOW.
o.opencurrentdatabase "full path to your database"
o.visible=true
o.usercontrol=true
set o=nothing
when it reaches
set o = createobject ("access.application") I get a run-time 438
object doesn't support this property or method.
Any idea how to get this to run, or alternative code. help would
greatly be appreciated- Hide quoted text -
- Show quoted text -
Yes I mean a html or htm page. I had never heard of a hta before. I
can't code in Javascript. I tried the vbScript thing but it's blocked,
so I have to accomplish this using htm. Any other ideas
.
- Prev by Date: Re: Control Scrolling Of Continuous Form
- Next by Date: Controlling the 'On change' event for a numeric control.
- Previous by thread: Re: hidden database window shows on exit
- Next by thread: Controlling the 'On change' event for a numeric control.
- Index(es):