+ Reply to Thread
Results 1 to 12 of 12

Programming a Copyright pop-up on opening

  1. #1
    Registered User
    Join Date
    07-07-2006
    Posts
    24

    Programming a Copyright pop-up on opening

    Regarding the attached spreadsheet, I would like a pop-up window to appear upon opening the file whereupon the user is greeted with a copyright message and are then given a choice to adhere to the copyright policy and continue (e.g. "I Agree"), or disagree and the spreadsheet closes or will not open (e.g. "I Disagree").
    I am certain this can be done with VBA. But every spreadsheet I have attempted VBA with I have damaged more than helped. Thank you!
    - John

  2. #2
    Registered User
    Join Date
    07-07-2006
    Posts
    24
    Apologies...the file was accidentally not uploaded in the original message.
    Many thanks!
    Attached Files Attached Files

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    There are three parts to this.
    • Force the user to enable macros on opening by keeping all sheets VeryHidden until enabled.
    • Pop up a userform in the Open event for the workbook, and unhide sheets when the user accepts the message.
    • Protect the VBA project, so someone doesn't just bypass your protections.
    Someone may be kind enough to show you how to do all three, but they are three independent issues that you could solve piecemeal by searching the forum.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Search for splash screens.

    I'm not really sure what you could copyright in the attached workbook though.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    07-07-2006
    Posts
    24
    yes, i recall something about hiding everything and basically having a splash screen (forgot what it was called) that forced someone to enable macros, upon which the spreadsheet would unhide itself.
    If any who are VBA experts feel so inclined to take this challenge on, please feel free. In the meantime I will see how badly I can do.
    Thank you for the help.

    Quote Originally Posted by shg View Post
    There are three parts to this.
    • Force the user to enable macros on opening by keeping all sheets VeryHidden until enabled.
    • Pop up a userform in the Open event for the workbook, and unhide sheets when the user accepts the message.
    • Protect the VBA project, so someone doesn't just bypass your protections.
    Someone may be kind enough to show you how to do all three, but they are three independent issues that you could solve piecemeal by searching the forum.
    Last edited by jgn2112; 09-16-2008 at 07:10 PM.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Post in haste, repent at leisure.

    You can't hide all the worksheets. You can make the splash sheet the unhidden sheet. I think (haven't tried) that you can make the workbook invisible (like an add-in) and use a form, but the splash sheet would be easier and faster.

    Roy is more expert on this that I.

  7. #7
    Registered User
    Join Date
    07-07-2006
    Posts
    24
    Bottom line, this isn't anything that I'm going to be able to figure out any time soon. So maybe there is yet an easier, if not more complete way to satisfy one of my goals...
    When opening up a spreadsheet, in the very far upper left on the actual border of the window it will say, "Microsoft Excel - *file name*" -- Is there any way to simply program a code so that after the filename it reads something to the effect of: "(c) John Nygaard, 2008" ?
    Many people have been asking for this spreadsheet and I intend on giving it out as freeware but would like to copyright it first and some other manner than just typing in the copyright on the first sheet or something.
    My original idea is going to be above my head...that I can tell already. At least with my self-imposed timeline. It may be something I can figure out over a period of time as I piece it together here and there.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Why not just put a copyright notice on any sheet? I believe it carries the same weight irrespective of where it appears.

    As Roy said, it's not clear what you're copyrighting ...

  9. #9
    Registered User
    Join Date
    07-07-2006
    Posts
    24
    I want to copyright the entire workbook so that when I give it out no one can then submit it somewhere for profit or sell it themselves for profit. If I just put a copyright notice in one cell somewhere on each sheet, it could easily be erased. Granted, anything I do could be erased or omitted with some know-how, but I at least want to try to cover my bases before giving this spreadsheet away to anyone.

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    I think you ought to read about copyright law (there are a host of resources available on the web; one is http://www.rbs2.com/copyr.htm) or (preferably) talk to a lawyer.

    Our advice is limited to Excel.

  11. #11
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    As I said, I don't think your copyright will be that valid. You can create a userform to act as splash screen, lots of examples on the web. The best way around this would be to hide all sheets except one that will have the copyright notice & an accept button. When clicked this will unhide the other sheets, I have posted code on the Forum to do this. This sheet could also act as a macro reminder. You could store the acceptance in the workbook & not show the sheet in future.

  12. #12
    Registered User
    Join Date
    07-07-2006
    Posts
    24
    Roy,
    I think that will do fine. Thanks for your help...I'll get searching!

+ 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. Reference cells in another workbook without opening it
    By blurtoad in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-04-2008, 04:53 AM
  2. Copyright Question
    By AlanWade in forum Excel General
    Replies: 2
    Last Post: 06-29-2008, 01:45 PM
  3. Strange bug/issue opening a workbook
    By ctmurray in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-26-2007, 11:22 PM
  4. Retrieving data from source workbook without opening?
    By Sean Anderson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2007, 03:47 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