+ Reply to Thread
Results 1 to 16 of 16

How can I use VBA to turn my Excel application into a time-limited demonstration?

Hybrid View

  1. #1
    Registered User
    Join Date
    08-18-2022
    Location
    leicester
    MS-Off Ver
    2007
    Posts
    33

    How can I use VBA to turn my Excel application into a time-limited demonstration?

    I have wrote a excell work book which he wants a demo

    How can i give them it for a week to test out with some vba code in it to do this?


    1.....I can put a time limit in to say for 1 day 1 week 1 month wich ever.

    2.....vba code to stop them putting the clock back to access the work book

    3.....The problem would come up if he wanted the workbook but no restriction in it IE time, also he has put in the
    workbook a load of data in it.

    3......He would want to keep the data that he put in

    4......can a vba code be like this?
    Your time is up for the demo , we have saved your data to a file but the workbook will not run now

    5......He would send the workbook back to me to alter BUT how would I get in it to take out the time limit vba

    6......I could then give it back to him

    7......I have seen some where you can make it just run on one computer only henc not to send it anyone


    SORRY for such a long ask


    Thank you
    Last edited by AliGW; 07-11-2023 at 12:51 PM. Reason: Thread title improved - generic thread titles are NOT permitted.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,792

    Re: Demo

    OK - so firstly, have you reviewed the rules? When you do, you will see that your thread title is completely unacceptable.

    Secondly, are you asking someone to build this entire demo for you? Or are you asking just if it's possible? Or something else?

    The first of these would be way beyond the scope of a free forum, but you could use the Commercial Services section to pay someone to do it for you.

    I shall update your thread title when I know what this request really is about.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-18-2022
    Location
    leicester
    MS-Off Ver
    2007
    Posts
    33

    Re: Demo

    Hi

    Thank you for getting back to me


    1....I did NOT know I had broken any of your rules.

    2....My ask what I had done?

    3....I did read about url and NOT asking to break or hack any code

    4....I thought it was like any other forum where you can get help with code and user do write code
    for the end user.

    5.....So you are saying to sort this out I have to go to your site and Pay for some one to do this
    very SMALL PIECE OF CODE Which IF it was a very long code to Wright and complicated then I
    would not have any problems paying for.

    6....to answer
    "Secondly, are you asking someone to build this entire demo for you?"
    If you look at what I put IE
    "I have built/made this excel workbook"
    So no it is built BUT do want a vba code to do what I ask.
    7.....I presume that is why my first post did not get put on because some rule about
    "thread title is completely unacceptable" why?


    Wait waiting your reply

    Kind Regards

    ===============================================
    Last edited by AliGW; 07-11-2023 at 11:00 AM. Reason: Please do NOT quote unnecessarily!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,792

    Re: Demo

    You have broken the rule about thread titles, which states:

    1. Title must briefly summarize your request.
    The word 'Demo' is not a summary of a request.

    I will fix the title for you once I understand what you are asking for.

    Yes, you can get help with your code - I suggest you attach the workbook so that your helpers can have a look and see if they are able to assist. Instructions are at the top of the page in the yellow banner.

    Can you explain in one sentence what it is EXACTLY that you want help with? Your original post has 7 points and I cannot work out exactly what you want.

    I have wrote a excell work book which he wants a demo
    English may not be your first language, as this opening sentence does not make a lot of sense. Nor does much of the rest of the post. Sorry.

    3....I did read about url and NOT asking to break or hack any code
    I never suggested that you had!
    Last edited by AliGW; 07-11-2023 at 11:17 AM. Reason: Added detail.

  5. #5
    Registered User
    Join Date
    08-18-2022
    Location
    leicester
    MS-Off Ver
    2007
    Posts
    33

    Re: Demo

    "I will fix the title for you once I understand what you are asking for."
    Thank you
    =======================================================
    "Yes, you can get help with your code - I suggest you attach the workbook so that your helpers can have a look and see if they are able to assist. Instructions are at the top of the page in the yellow banner."

    It is NOT the workbook that I need help with.
    I have no code to post, that is what I was asking for

    ===============================================
    "English may not be your first language, as this opening sentence does not make a lot of sense. Nor does much of the rest of the post. Sorry.

    Hmmm Sorry my english is not good for you I will redo for youit in plain english so you can understand it

    I said
    "I have wrote a excell work book which he wants a demo"

    so you can understand

    A person ask me to write a workbook for accounts which I did
    he then ask if he could try it out
    so far so good?
    I said yes so called it a demo workbook
    BUT I wanted to put code in this workbook to give him a trial for 1 month.
    Okay do you get it now?
    then the rest of my text is very clear and simple to follow I would have thought about the rest of the code etc
    with out repeating it herr again
    =================================================
    "I never suggested that you had!"

    You have broken the rule about thread titles


    So to put it clear to what I want is the code to put in my workbook to do what I ask in my text.


    Kind regards
    Last edited by AliGW; 07-11-2023 at 12:53 PM. Reason: Please do NOT quote unnecessarily!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,792

    Re: Demo

    Administrative Note:

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    (Note: this requirement is not optional. As you are still inexperienced here, I shall do it for you this ONCE: https://www.mrexcel.com/board/thread...-info.1240970/)

    That's two rules broken so far today: pleae do re-read the forum rules, as I do not thnk you have understood them fully. Thanks.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,173

    Re: Demo

    In VBA: add code which will EXIT vba macro if your termination date is reached

    To restrict access to VBA, password protect the VBA code. It will not be visible and hence cannot be changed/copied.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,943

    Re: Demo

    In terms of a thread title, maybe something like "How can I use VBA to protect my Excel application?" Or, alternatively, "How can I use VBA to turn my Excel application into a time-limited demonstration?" Probably the second one is more appropriate and relevant.

    Whilst you have developed an application for your client, what you are asking for is an application in its own right.

    You first need to force the user to enable macros. This is usually done with a Splash screen. The Workbook Open Event handler is used to make the Splash screen hidden and all the other sheets visible. This process is reversed when the workbook is saved and/or closed. Once that is in place, you can put a process in place to save the date and time the application is first opened. That allows you to check how many days/weeks/months the application has been used. And then you can take action to issue warnings and, eventually, save all the data in the sheets as values, save a copy of the static workbook as an .xlsx file, and kill the original macro enabled workbook.

    Of course, the user might work around this process by starting a new copy of the application. That can be avoided by creating a file on the user's computer and checking for its existence.

    And you'd need to protect the VBA project with a password.

    All doable but not simple and it needs to work around your real application. You could spend significantly more time putting protection in place than you did on the actual application.

    Finally, you need to bear in mind that Excel is not a secure environment. Many of the people on this forum could unpick any security you put in place (probably within minutes).
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  9. #9
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Demo


    Quote Originally Posted by TMS View Post
    And you'd need to protect the VBA project with a password.

    Finally, you need to bear in mind that Excel is not a secure environment.
    Many of the people on this forum could unpick any security you put in place (probably within minutes).
    I agree. I can crack the VBA password in a snap with a snippet everyone can find on web for free …

  10. #10
    Registered User
    Join Date
    08-18-2022
    Location
    leicester
    MS-Off Ver
    2007
    Posts
    33

    Re: Demo

    Quote Originally Posted by Marc L View Post

    I agree. I can crack the VBA password in a snap with a snippet everyone can find on web for free …
    Thank you for your input.

    Hope I do not brake any more RULES ha ha ha

    Please can you tell me the vba code to do the following

    Force the other person who is going to get the workbook to have macros enabled by code.

    Thank you

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,792

    Re: Demo

    3....I did read about url and NOT asking to break or hack any code
    I never suggested that you had!
    You have broken the rule about thread titles
    You have broken the rule about thread titles, NOT the rule about asking to break or hack code (which was never mentioned by me).

    I will change the title, but your requirements still are not 100% clear to me. No matter: John and Trevor seem to get what you want.

  12. #12
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,943

    Re: How can I use VBA to turn my Excel application into a time-limited demonstration?

    In VBA: add code which will EXIT vba macro if your termination date is reached
    That would be done in the workbook open event handler. You would also need to calculate and store the termination date.

    To restrict access to VBA, password protect the VBA code. It will not be visible and hence cannot be changed/copied.
    Probably not strictly true. Potentially difficult but not impossible.

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,173

    Re: How can I use VBA to turn my Excel application into a time-limited demonstration?

    Potentially difficult but not impossible.
    Excel "hackers" aside, is there any other option ??.

  14. #14
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,943

    Re: How can I use VBA to turn my Excel application into a time-limited demonstration?

    To be fair, any protection you put in place will stop the majority of "typical" users. It will depend, however, on their ability and determination.

  15. #15
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,943

    Re: How can I use VBA to turn my Excel application into a time-limited demonstration?

    @JT: refer to post #11 (overlapped)

  16. #16
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,943

    Re: How can I use VBA to turn my Excel application into a time-limited demonstration?

    See: https://www.teachexcel.com/excel-tut...xcel_1390.html

    Note that this is only one small part of the process described earlier.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Need Help Creating a Demo
    By catnam in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2016, 10:22 PM
  2. [SOLVED] reducing a list to one of each type (demo attached)
    By johnandrews in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-10-2014, 03:06 PM
  3. [SOLVED] Vlookup works up to row 24, then goes #n/a for every row after, demo included
    By Joe-XT in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-21-2013, 11:40 AM
  4. Show File Pics Demo
    By united789 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-19-2011, 01:32 PM
  5. Making a Excel File Demo Version
    By ssghosal in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-18-2007, 12:45 PM
  6. [SOLVED] demo db
    By Andre in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-10-2006, 07:15 PM
  7. Pivot Table Demo
    By vkk0912 in forum Excel General
    Replies: 1
    Last Post: 02-28-2006, 06:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1