I tried hidding an html file my program uses and after I hide it using
Call SetAttr("m.html",vbHidden)
It gives me a runtime error, and when I take that command out it works fine. How can I get around this?
-thanks
:)
Printable View
I tried hidding an html file my program uses and after I hide it using
Call SetAttr("m.html",vbHidden)
It gives me a runtime error, and when I take that command out it works fine. How can I get around this?
-thanks
:)
What's the runtime error you get?
Surely, your not using just "m.html", you specified a path, correct?
filburt1: Is it me or is in every post, your title and avatar different?
...such as App.Path & "\m.html"...Quote:
Originally posted by Matthew Gates
Surely, your not using just "m.html", you specified a path, correct?
Mere coincidence. :DQuote:
Originally posted by Matthew Gates
filburt1: Is it me or is in every post, your title and avatar different?
Yea im using just "m.html". It hid it.
You should use a path as well. If it's in your program's directory, use App.Path.
VB Code:
SetAttr App.Path & "\m.html", vbHidden
Safer and surer to use a path with a file, not just a single filename.
Or you could just use a period.
VB Code:
SetAttr ".\m.html", vbHidden
Okay, I used
SetAttr App.Path & "\m.html", vbHidden
but I got the same error:
Runtime error 75 path/file access error error
Is m.html in the same directory as your project?
yep, it only happens when I hide it.
Are you saying that your hiding it and then trying to hide it again?