+ Reply to Thread
Results 1 to 4 of 4

Hide a row problem

  1. #1
    Registered User
    Join Date
    10-15-2008
    Location
    Montreal
    Posts
    8

    Hide a row problem

    Hello everyone ...
    In my Excel file I have a list of actions to be carried out on a project. At the G column, I must indicate if the action is ongoing, completed or not yet started.

    How to hide a line when I indicated in column G that the action is Completed

    Thank you

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387
    amne26,

    Please TEST this FIRST in a COPY of your workbook (always make a backup copy before trying new code, you never know what you might lose).

    Press and hold down the 'ALT' key, and press the 'F11' key.

    Insert a Module in your VBAProject, Microsoft Excel Objects

    Copy the below code, and paste it into the Module1.

    Please Login or Register  to view this content.

    Then run the "HideG_RowIfCompleted" macro.


    Have a great day,
    Stan

  3. #3
    Forum Contributor SOS's Avatar
    Join Date
    01-26-2004
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    327
    Hi stan,

    I can see that the code works but wonder can you tell me when you Dim the variables as LR& and LoopCtr&, does the ampersand have any specific effect?

    Just interested, that's all

    Regards

    Seamus

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    It's the type declaration character for a Long.
    Entia non sunt multiplicanda sine necessitate

+ 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. Cut and Paste Problem
    By agila916 in forum Excel General
    Replies: 4
    Last Post: 07-09-2007, 05:36 PM
  2. Excel 2007/ Outlook 2007 mail Problem
    By Bostock in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-25-2007, 04:26 PM
  3. Countif funtions problem
    By mike4545 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-17-2007, 02:37 PM
  4. Cell function problem
    By itty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-19-2007, 08:27 AM
  5. Complex nested array formula problem and challenge
    By PeterWilliams in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-26-2007, 10:34 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