+ Reply to Thread
Results 1 to 2 of 2

How do I create a macro that will hide blank rows in Column-A and protected data in other

  1. #1
    Registered User
    Join Date
    01-04-2017
    Location
    Socal
    MS-Off Ver
    2013 excel
    Posts
    4

    How do I create a macro that will hide blank rows in Column-A and protected data in other

    Hello,
    I have an excel sheet with data and formulas from Column lines E-G.
    I want to protect those columns so no one can delete or alter them.
    Under column line -A is the users data entry column.
    Under that column he or she will enter data based on the items they need and leave all the other items blank in that column.
    I wrote macro to hide the blanks rows which works until I lock or protect the sheet.
    When I lock the sheet the macro does not work I suspect because I locked the columns from E-G.
    Is there a way to still lock the cells and still create a button to hide blank rows?
    Do I need to write a macro to unprotect the sheet, hide the rows and then protect the sheet again?
    How would that look?

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: How do I create a macro that will hide blank rows in Column-A and protected data in ot

    https://www.automateexcel.com/vba/un...ct-worksheets/

    Maybe read the above article as there can be more to it then just unprotecting and protecting. It all depends on.
    Just unprotecting, doing your stuff and then protecting again is simple enough as you will see.

+ 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 to loop through column, if blank blank cells then hide rows
    By stein7 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-25-2019, 01:24 PM
  2. How to create a macro to insert blank rows and copy data into blank rows?
    By zodiack101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2013, 01:18 PM
  3. Create Macro that will 'hide" rows that have no variables in column C
    By BAWILS in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-04-2013, 10:28 PM
  4. Replies: 1
    Last Post: 08-19-2011, 10:25 AM
  5. How to create a macro to hide specific rows where 1st column contains merged cells
    By ascottbag in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-27-2011, 01:16 PM
  6. Hide rows on a protected sheet with macro
    By darthshani in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-12-2009, 03:40 AM
  7. Macro to hide rows-sheet is being protected
    By Alex in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-07-2005, 03:15 PM

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