+ Reply to Thread
Results 1 to 7 of 7

Macro creation help needed for hidden rows

  1. #1
    Registered User
    Join Date
    06-23-2014
    Location
    Detroit, Michigain
    MS-Off Ver
    2013
    Posts
    6

    Macro creation help needed for hidden rows

    Hello,

    I am in need of help on a macro. I need a macro that if I select a selction in a drop down, certian rows should become displayed and some hidden.

    For example, if I select "Connectors 4 Wire 2" in cell C3 then rows 6-12 will be hidden and 13-18 will be displayed, etc. I feel this is a very simple marco, but I am messing something up .

    You help is greatly appreciated! Let me know if you have any further quesitons.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Macro creation help needed for hidden rows

    You will need to expand for additional selections:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-23-2014
    Location
    Detroit, Michigain
    MS-Off Ver
    2013
    Posts
    6

    Re: Macro creation help needed for hidden rows

    Attached I have a model that I am referring to. Can you please create a macro for the attached?

    In D7 if you select "1" then rows 9-25 appear, "2" 30-47, "3" 52-73, and "4" 77-98. I for some reason am not having any luck in creating a marco.

    When I tried the previous macro I get an "Unsub error..." a lot. Does the spacing on End if and End Sub matter?

    Your help is much appreciated.
    Attached Files Attached Files

  4. #4
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Macro creation help needed for hidden rows

    JNoonan,

    Did you put the code from stnkynts in the code for the WORKSHEET? It is not a normal sub, and needs to be inserted as code for the worksheet you want it to affect.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  5. #5
    Registered User
    Join Date
    06-23-2014
    Location
    Detroit, Michigain
    MS-Off Ver
    2013
    Posts
    6

    Re: Macro creation help needed for hidden rows

    Yeah, whenever I do the error of: "Compile Error Expected End Sub"

  6. #6
    Registered User
    Join Date
    06-23-2014
    Location
    Detroit, Michigain
    MS-Off Ver
    2013
    Posts
    6

    Re: Macro creation help needed for hidden rows

    I feel like what I am doing is a very simple and I am just missing something. I have attached the what I am trying to do in an earlier post with the attached model. Would you be able to try?

  7. #7
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Macro creation help needed for hidden rows

    JNoonan how about the attached file? Does it do what you wanted?
    Attached Files Attached Files

+ 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 for deleting hidden rows
    By Esuric in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-02-2014, 11:14 AM
  2. Hello and Help needed with folder creation
    By pdj in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-28-2014, 03:09 PM
  3. Dashboard creation needed
    By ukphoenix in forum Excel General
    Replies: 8
    Last Post: 05-14-2013, 04:59 AM
  4. Replies: 2
    Last Post: 01-24-2012, 05:40 PM
  5. macro creation to format mulitple rows in a list *difficult*
    By TroyT in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-13-2006, 10:10 AM

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