+ Reply to Thread
Results 1 to 4 of 4

Help with hiding rows using If functions in VBA

  1. #1
    Registered User
    Join Date
    03-07-2015
    Location
    here
    MS-Off Ver
    2010
    Posts
    2

    Help with hiding rows using If functions in VBA

    Hi everyone

    I'm currently trying to edit an excel spreadsheet for work having (stupidly) said that I could improve on it. Now, it has been created by someone else who no longer works there and I'm not sure about everything on there and I'm learning as I go because my Excel knowledge is fairly average. I don't want to post the whole sheet on here because it belongs to my employer but I wondered if someone could help with these if functions which I'm using to try and hide and unhide various rows using drop down boxes as they are driving me crazy. The following is the part that I am working on at the minute:

    Please Login or Register  to view this content.
    The idea is to get rows 15-17 displayed if K14 is Yes, and to get rows 15-20 displayed if G14 is no, but to have all 15-20 hidden if k14 is no and g14 yes or if no option has yet been selected.

    Any help greatly appreciated as it's driving me crazy.

    Quote Originally Posted by jeffreybrown View Post
    We would love to help you with your query, but first, before we can proceed, please see Forum Rule #8 about cross posting...
    sorry, also posted here:
    http://www.mrexcel.com/forum/excel-q...lications.html
    Last edited by jeffreybrown; 03-07-2015 at 07:34 PM. Reason: Added code tags and cross post

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,665

    Re: Help with hiding rows using If functions in VBA

    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    03-07-2015
    Location
    here
    MS-Off Ver
    2010
    Posts
    2

    Re: Help with hiding rows using If functions in VBA

    Quote Originally Posted by protonLeah View Post
    Please Login or Register  to view this content.
    Thanks very much missed that bit

    I've now actually finished the spreadsheet after a few long hours, the only thing I'm now trying to do is protect the sheet so users don't accidentally edit fields, I have selected only the fields they should be able to edit and locked and password protected the rest, the only problem I have is any time a locked cell is clicked on a password prompt pops up which is very annoying for the user. Is there any way to disable this?

    Thanks for all your help

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,665

    Re: Help with hiding rows using If functions in VBA

    Sorry, I don't think I can help with that one. Did you deselect the option "select locked" cells when you protected the sheet?

+ 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. Hiding a button when hiding rows
    By fergusor in forum Excel General
    Replies: 2
    Last Post: 08-10-2006, 09:31 AM
  2. Replies: 4
    Last Post: 08-09-2006, 02:19 PM
  3. Hiding AddIn Methods from Worksheet Functions But Exposing to VBA
    By Matthew Wieder in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-23-2006, 11:45 AM
  4. [SOLVED] Hiding functions in add-in
    By RB Smissaert in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-02-2006, 06:45 AM
  5. Replies: 2
    Last Post: 10-18-2005, 10:05 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