+ Reply to Thread
Results 1 to 13 of 13

Hide Row Macro

Hybrid View

  1. #1
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Hide Row Macro

    [QUOTE=Joe.RBI;4817504]This is the code that I have come up with but it won't run. Doesn't give any errors, just doesn't run.


    Why are you not following the example I gave and ignoring the advice? There is no need to name the sheet since you are using a sheet change event. The sheet name is irrelevant.

    You are also hard coding a cell reference. That's not good practice. You were advised to use a range name.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  2. #2
    Registered User
    Join Date
    01-09-2018
    Location
    Cincinnati, Ohio
    MS-Off Ver
    2016
    Posts
    7

    Re: Hide Row Macro

    [QUOTE=Richard Buttrey;4817545]
    Quote Originally Posted by Joe.RBI View Post
    This is the code that I have come up with but it won't run. Doesn't give any errors, just doesn't run.


    Why are you not following the example I gave and ignoring the advice? There is no need to name the sheet since you are using a sheet change event. The sheet name is irrelevant.

    You are also hard coding a cell reference. That's not good practice. You were advised to use a range name.
    I'm not sure I am following you. At no point did I ignore any advice, I tried your code and only changed the range value to the desired cell name. What do you mean by "hard coding a cell reference"? I have a named cell that has a list with three options that reference a separate tab.

+ 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. Hide Visibility hide and unhide menu using macro ?
    By jasond1992 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-30-2015, 09:05 PM
  2. Hide/Show other macro buttons with a macro button
    By nohero in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-16-2011, 09:24 AM
  3. Hide row macro
    By hrhittn23 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-24-2010, 04:57 PM
  4. conflict between auto save&close macro and show/hide sheets macro
    By alexandruc in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-18-2009, 11:56 AM
  5. Hide Macro
    By OfficeBitty in forum Excel General
    Replies: 3
    Last Post: 12-19-2006, 03:58 AM
  6. Hide Macro's in Toolbar / Macro's list
    By sparx in forum Excel General
    Replies: 2
    Last Post: 05-06-2006, 03:53 PM
  7. [SOLVED] hide macro
    By GM in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2005, 12:06 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