Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2006

Tip: Looking for answers? Try searching our database.

Time Out VBA Code Office 11

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
janine_docsonline - 17 Mar 2006 19:13 GMT
Looking to set up trial period lock out code for Word .dot and .doc on file
New, file Open and whatever else and throw message to screen saying  contact
details please register.

I also need to allow option to give password and let the template know it is
accessible without always having to supply fresh templates?

Any suggestions as to how best to achieve this would be great.

Many tks
Janine
Jezebel - 17 Mar 2006 23:17 GMT
> Looking to set up trial period lock out code for Word .dot and .doc on
> file New, file Open and whatever else and throw message to screen saying
> contact details please register.

I assume what you're getting at here is that you want documents and
templates that can be used only for a limited time, until the user
registers. Forget it. Find some other way to collect payment. It is
possible, just, to enable/disable an add-in with full security -- but even
that is quite tricky -- but you can't start screwing around with other
people's New and Open commands. Apart from it being antisocial, it won't
work anyway.

> I also need to allow option to give password and let the template know it
> is accessible without always having to supply fresh templates?

I have not the faintest idea what this question is about. What are fresh
templates?
janine_docsonline - 18 Mar 2006 02:03 GMT
Not quite what I mean Jezebel so put your claws back where they came from.
It is so the correct code free templates can be downloaded on expiry.

>> Looking to set up trial period lock out code for Word .dot and .doc on
>> file New, file Open and whatever else and throw message to screen saying
[quoted text clipped - 13 lines]
> I have not the faintest idea what this question is about. What are fresh
> templates?
Jay Freedman - 18 Mar 2006 03:08 GMT
Given the number of questions in the newsgroup from people trying to
protect their intellectual property from being copied [answer: it
can't be done effectively in Word unless you subscribe to Microsoft's
IRM service], I think Jezebel could be forgiven for assuming your
mention of a "trial period lock out code" referred to that. I thought
the same thing.

If you write macros in your template and give them the specific names
that intercept the built-in commands
(http://www.word.mvps.org/FAQs/MacrosVBA/InterceptSavePrint.htm), each
one can compare the system date (the result of the function Now()) to
some predetermined "expiration date" (which you can store in a
document variable or a .txt file or in the registry during
installation); if the system date is later, display a messagebox.
Either way, then call the built-in function that was intercepted.

The code project in the template can be password protected, so the
code can't be viewed. The only ways the message could be avoided are
to remove the template from the system or disable all macros. If you
meant something else by the reference to a password, please explain.

--
Regards,
Jay Freedman
Microsoft Word MVP        FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

>Not quite what I mean Jezebel so put your claws back where they came from.
>It is so the correct code free templates can be downloaded on expiry.
[quoted text clipped - 16 lines]
>> I have not the faintest idea what this question is about. What are fresh
>> templates?
janine_docsonline - 18 Mar 2006 03:47 GMT
Thank you Jay. The form won't have much IP I just want to develop a good
time out code and was looking for ideas so I can collaborate more
effectively with another programmer.

Again thank you.

<jay.freedman@verizon.net> wrote in message
news:oopm12pvq7gnmq3ccq1tvpckm9nq5lsc6v@4ax.com...
> Given the number of questions in the newsgroup from people trying to
> protect their intellectual property from being copied [answer: it
[quoted text clipped - 47 lines]
>>> I have not the faintest idea what this question is about. What are fresh
>>> templates?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.