+ Reply to Thread
Results 1 to 5 of 5

Need a macro for hiding a row in a worksheet after entering the required information

  1. #1
    Registered User
    Join Date
    02-11-2010
    Location
    Dubai
    MS-Off Ver
    Excel 2007
    Posts
    5

    Need a macro for hiding a row in a worksheet after entering the required information

    Hi,

    I would appreciate if anyone could help me with a macro for hiding a row in a worksheet once the required information is entered into the row. For e.g. Data needs to be entered from A2 to H2 in a worksheet and once finished entering the information in H2, row 2 should hide automatically and should display only rest of the rows i.e. 3 onwards. This process should reapeat itself for the rest of rows.

    Thanks,

    Biju

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Need a macro for hiding a row in a worksheet after entering the required information

    Here!

    Put this on the Worksheet Module -

    Please Login or Register  to view this content.
    And this on a regular module -

    Please Login or Register  to view this content.
    Cheers!
    Deep Dave

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Need a macro for hiding a row in a worksheet after entering the required information

    You may also try something like this.....

    Place the following code on Worksheet Module (Right click the Sheet Tab --> View Code --> Paste the code given below on the opened code window.)
    Please Login or Register  to view this content.

    And place the following codes on Standard Module. (On VBA editor --> Insert --> Module --> Paste the following code on the code window)
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Registered User
    Join Date
    02-11-2010
    Location
    Dubai
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Need a macro for hiding a row in a worksheet after entering the required information

    Thanks a lot for your solution and it works.

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Need a macro for hiding a row in a worksheet after entering the required information

    You're welcome.
    If that takes care of your original question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.

+ 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. Urgent help required: lock the data in a cell after entering the value.
    By vikrantrai0102 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2014, 06:30 AM
  2. [SOLVED] Macro required to delete row numbers specified on another worksheet
    By wknigh14 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-02-2013, 04:04 AM
  3. Hiding rows:creates a letter from an other worksheet data information
    By Griffp in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2008, 02:29 PM
  4. Replies: 8
    Last Post: 05-21-2006, 09:50 PM
  5. hiding macro codes upon protecting the worksheet
    By eehj23 in forum Excel General
    Replies: 1
    Last Post: 04-27-2006, 11:00 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