+ Reply to Thread
Results 1 to 4 of 4

How to Protect Shee but Allow Autofit to Work

  1. #1
    Registered User
    Join Date
    08-27-2014
    Location
    London, England
    MS-Off Ver
    MS Office 2007
    Posts
    5

    How to Protect Shee but Allow Autofit to Work

    Hi folks,

    I'm new to this forum, and also to creating macros.

    I would greatly appreciate it if I could call on your expertise, please!!!

    I'm attempting to create a workbook whereby individual users have their own sheets with a table, which they can edit freely. The first column of each user's table is supposed to autofill into the 'overview' table (capturing what everybody is working on) on the first sheet of the workbook.

    My problem: I want to protect the 'overview' table on the first sheet so it cannot be edited, but still allow users to edit their tables on the remaining sheets and for the information they include to autofill to the protected sheet. However, when I attempt to protect the worksheet, it inhibits prevents the autofit code I've created from running.

    Does anybody know how I can get around this?

    Here is the code that I've used:

    Please Login or Register  to view this content.
    Thanks everybody
    Last edited by Fotis1991; 08-27-2014 at 07:19 AM. Reason: Pls use code tags around your codes.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: How to Protect Shee but Allow Autofit to Work

    Please Login or Register  to view this content.

    or when you protect, allow format rows?
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    08-27-2014
    Location
    London, England
    MS-Off Ver
    MS Office 2007
    Posts
    5

    Re: How to Protect Shee but Allow Autofit to Work

    Hi nathansav,

    Thank you for your reply. Unfortunately, that code hasn't worked. Should I still being the code with 'Sub' and end with 'end sub'.

    Sorry, I'm a novice.

    Thanks!
    C

  4. #4
    Registered User
    Join Date
    08-27-2014
    Location
    London, England
    MS-Off Ver
    MS Office 2007
    Posts
    5

    Re: How to Protect Shee but Allow Autofit to Work

    Actually Nathansav,

    I tried protect and allow format rows and that has worked! Thank you!!!!!!!

+ 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. Sort (dates) copy and paste to other work shee (last row)
    By darkc0de1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-14-2013, 10:59 AM
  2. FORMATTING: Autofit does not work properly sometimes
    By Rob Montgomery in forum Excel General
    Replies: 2
    Last Post: 10-03-2011, 10:04 AM
  3. [SOLVED] The Row Height Autofit command does not work.
    By rstrefry in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-19-2006, 12:25 PM
  4. [SOLVED] Autofit doesn't work with merged cells
    By Jen_G in forum Excel General
    Replies: 0
    Last Post: 01-30-2006, 03:05 PM
  5. [SOLVED] Autofit Row height or Column Width does not work
    By Gunjani in forum Excel General
    Replies: 2
    Last Post: 10-11-2005, 05:05 PM

Tags for this Thread

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