+ Reply to Thread
Results 1 to 2 of 2

Protect cells within a shifting range

  1. #1
    Registered User
    Join Date
    08-12-2009
    Location
    Perth, WA
    MS-Off Ver
    Excel 2003
    Posts
    93

    Protect cells within a shifting range

    Hi,

    The range of cells that I want protected are going to vary from workbook to workbook as each workbook will contain different amounts of data.

    So I need a macro that can be applied to protect a shifting range of data, for example:
    In 'workbook A', only cells B1:G26 contain data.
    Whereas 'workbook B' the data ranges from cells B1:G55
    *Note that cell B1 is fixed.

    I had the same problem with a shifting print range, the code below is what I developed and it works - it finds the last blank cell in column G and enters the word "End", it then expands the print range back to B1.

    I tried modifying this to protect cells but got stuck

    Please Login or Register  to view this content.
    Thank you

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Protect cells within a shifting range

    Hi hermithead

    In Thisworkbook Module try this code
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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