+ Reply to Thread
Results 1 to 8 of 8

How to filter on readonly workbooks

  1. #1
    Registered User
    Join Date
    04-26-2012
    Location
    belfast northern ireland
    MS-Off Ver
    Excel 2002
    Posts
    8

    How to filter on readonly workbooks

    I have a "master" workbook that multiple users continually import into (via a macro) from their own individual workbooks, for this reason the master file needs to be available all the times.

    I have written a macro that allows users to open the "master" readonly to enable them to spend time in it without disrupting other users who are trying to import data. However they need to be able to filter in the readonly version of the workbook - is this possible? I have spent the last couple of hours searching different forums and cant find an answer. Please help!

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to filter on readonly workbooks

    Opening a workbook as a read-only should not, in itself, cause the user to be unable to filter. Not sure if this is available in Excel 2002, but you shouldn't need a macro
    When saving your "master workbook" use Save As and then click on the Tools dropdown of that window> General Options and check "Read Only recommended" Then the user will be prompted upon opening the file if they want to open it as a read only.
    Hope that helps.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    04-26-2012
    Location
    belfast northern ireland
    MS-Off Ver
    Excel 2002
    Posts
    8

    Re: How to filter on readonly workbooks

    Cheers for the reply. The file status is set by the IT dept, some people have readonly access, others have readwrite. Sometimes the people with readwrite want to open the file readonly, which is why i wrote a macro.
    But really the issue is that if i save the file with filters on and then others add new rows the autofilter isnt refreshing to include the number of rows. Hope i have explained this clearly, the file is huge (16000 rows and growing) so staff need the autofilter to search for specific data.

  4. #4
    Registered User
    Join Date
    06-28-2012
    Location
    India Pune
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: How to filter on readonly workbooks

    Hi Wrathstorm,
    is your original file is password protected?
    If you have the password or read-write option then you have to unprotect the sheet and has to tick ("allow all user of this worksheet to") Use Autofilter.
    This will help all other users to use autofilter even if the file is in read only mode.

    Thanks & Regards
    Swapnilj1

  5. #5
    Registered User
    Join Date
    04-26-2012
    Location
    belfast northern ireland
    MS-Off Ver
    Excel 2002
    Posts
    8

    Re: How to filter on readonly workbooks

    Good morning Swapnilj1
    The file is password protected and i had already switched on "allow users to Autofilter" but this doesnt appear to be refreshing on opening - its only reading to the rows that it previously held even though the users have added more.
    The only way around this is to open it, unprotect it and switch the autofilter of and on again - obviously this isnt practical. Surely there is an easy solution? (lol)

  6. #6
    Registered User
    Join Date
    06-28-2012
    Location
    India Pune
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: How to filter on readonly workbooks

    Hi Wrathastorm,
    I think you have to amend your code and include the filter range till lastrow.
    Or you have to remove the filter on read-only mode and select entire data till lastrow and apply filter.
    If your macro is applying filter on Master sheet then check for the range and amend it till lastrow.
    Please check and revert in case of any further assistance.

  7. #7
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: How to filter on readonly workbooks

    Hi Wrathastorm,

    If you use a form button and mount the following macro on it (Obviously change the criteria etc. to what you want it to be) then you can advanced filter using that button and an input field for the document.

    Please Login or Register  to view this content.
    Regards

    Danny

  8. #8
    Registered User
    Join Date
    04-26-2012
    Location
    belfast northern ireland
    MS-Off Ver
    Excel 2002
    Posts
    8

    Re: How to filter on readonly workbooks

    Cheers everybody
    Sorry for the delay replying, sorted now thanks

+ 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