+ Reply to Thread
Results 1 to 7 of 7

Another disclaimer question

  1. #1
    Registered User
    Join Date
    02-09-2011
    Location
    Binghamton, NY
    MS-Off Ver
    Excel 2003
    Posts
    5

    Another disclaimer question

    I found the previous post with the disclaimer code and it's what I would like to use BUT the problem I have is if the user has Macros disabled the data in the excel sheet still is viewable. Is there a way to make it so that if they have the Macros disabled they get nothing?

    Basically I need a file to open and they have to accept to enter the document, if they decline or X out of the disclaimer it closes the document.

    The trick is, if they have their excel environment set to disable macros my disclaimer is not showing up and all the data in the excel file is viewable.

    Anybody know how I can fix this?

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Another disclaimer question

    doesnt matter what you do it will always be editable by anyone who knows how!
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Another disclaimer question

    You could use code like this to 'force' people to enable macros but as Martin says if people know Excel well enough it's easy enough to get round.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  4. #4
    Registered User
    Join Date
    02-09-2011
    Location
    Binghamton, NY
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Another disclaimer question

    Thanks for the replies - Yes I'm aware that people that really know Excel can get around it, the same goes for almost anything in the computer world.

    My boss just specifically wanted it so that if Macros were Disabled it would not show the data and I think what you linked me to should work just fine. I'm gonna test it out.

    thanks again

  5. #5
    Registered User
    Join Date
    02-09-2011
    Location
    Binghamton, NY
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Another disclaimer question

    could one of you please be so kind as to show me how to merge these two pieces of code?

    in my searches I have found a piece of code that will work for my disclaimer, and as you pointed me to earlier I was able to find a piece of code to use as my Macro Enabler - but I can't seem to find a way to make them work together.

    What I need is, when the document first opens it needs to check and make sure the macros are enabled. If they are not then it shows the message on the "prompt" page that they need to enable macros.

    If the Macros are already enabled OR After the Macros are enabled by the user, it then needs to open the disclaimer page, from there if they select "accept" it will allow them into the document, and if they select decline it will kick them out of the document.

    I have read thru both pieces of code and I just can't seem to figure out where each piece needs to be to merge them together. Seperately they do exactly what I need them to do, now I just need them to run together.

    after these documents are merged then I should be able to add the data and sheets I need to run my file

    If somebody could help me out I'd appreciate it.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-09-2011
    Location
    Binghamton, NY
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Another disclaimer question

    I'm getting a little farther - I'm able to make it run once, then when I try to run it again it has a debug error. After It runs the code it sets the "Start Page" to veryHidden causing the next run to throw a debug error. If I set the "Start Page" to visible it runs again.

  7. #7
    Registered User
    Join Date
    02-09-2011
    Location
    Binghamton, NY
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Another disclaimer question

    I think I figured it out - I did a rookie mistake and put one of my call functions where it didn't belong.

    Everything seems to be working now

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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