+ Reply to Thread
Results 1 to 2 of 2

Limiting the number of times a spreadsheet can be opened

Hybrid View

  1. #1
    Registered User
    Join Date
    11-16-2012
    Location
    blackpool
    MS-Off Ver
    Excel 2003
    Posts
    7

    Limiting the number of times a spreadsheet can be opened

    Hi

    Is there any way to build a Macro that limits the number of times a user can access a spreadsheet.

    I have spreadsheet that is used by various managers around the organisation, each manager has to select their team and complete the spreadsheet for that month. At the minute they can submit this spreadsheet as many time as they like, i would like to be able to limit them to 1 per month.

    I am unsure if this is physically possible but any information would be greatly appreciated.

    Kind Regards

    Sam

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Limiting the number of times a spreadsheet can be opened

    Yes you can limit the Opening.

    Keep a hidden sheet to store open count by placing a code in On open event store the name of the user, Month and increment the opening count in the next cell.

    Keep a code in the same open event to check whether the user has already opened the file in that month if so keep a exit code by using an if condition

    But the user should enable the macro so that all these can be done, otherwise it's not possible.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ 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. Macro that sets maximum number of times a workbook is opened
    By Mark1011 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2012, 08:41 AM
  2. Replies: 10
    Last Post: 06-20-2011, 04:21 AM
  3. limiting the spreadsheet
    By oknir in forum Excel General
    Replies: 1
    Last Post: 02-22-2009, 02:51 PM
  4. Replies: 2
    Last Post: 08-06-2008, 05:18 AM
  5. Limiting the no of times a macro can run
    By rajesh_mundhra in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2007, 05:07 AM

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