Consulting

Results 1 to 7 of 7

Thread: Solved: Hide Unhide Columns - But Not Certain Cells

  1. #1
    VBAX Newbie
    Joined
    Feb 2006
    Location
    Minesing
    Posts
    4
    Location

    Solved: Hide Unhide Columns - But Not Certain Cells

    Hello,

    My Sister told me to come here and learn. I think she is tired of my questions! I am sure this can be done!

    Just learning to use the macro recorder and made 2 macros. The 1st will "hide" columns E, F, G and the 2nd will "unhide the columns.

    The file is attached as it may help.


    I am trying to find an answer to this,



    • When I select the ?Heats? option, the hide macro is run and Cells E7, F7, G7 in row 7 and cells E8, F8, G8 in row 8 are no longer visible.


    • I don?t want those cells to be hidden.


    • What changes need to be made to the hide macro to keep the cells above visible at all times like they are when the ?Training & Heats? option is selected?


    I can put cells some place else but I want to see how this is done and try to understand the code.



    Could someone show me how to begin and I will go away and work on it myself...



    Thank you very much,



    Cliff Chadwick

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Like this

  3. #3
    VBAX Newbie
    Joined
    Feb 2006
    Location
    Minesing
    Posts
    4
    Location
    Hello Xld,

    Thank you for showing me the way to do this.

    I did look at your code and used the macro recorder to do the same thing with copy and paste, then used cut and paste to do this. After looking at the 3 codes I understand what is happening, but I would not have used so few steps if you had not showed me.

    Why does the macro recorder show more than you needed to do this?

    You are a good person,

    Cliff Chadwick

  4. #4
    VBAX Master Norie's Avatar
    Joined
    Jan 2005
    Location
    Stirling, Scotland
    Posts
    1,831
    Location
    Cliff

    The macro recorder does just that, records everything you do.

    Generally it's a good tool but can generate code that needs to be altered afterwards.

  5. #5
    VBAX Newbie
    Joined
    Feb 2006
    Location
    Minesing
    Posts
    4
    Location
    Hello Mr. Norie,

    I will keep trying to see what can change and still work properly. You and Mr Xld were fast to help me. I will stop coming here until I have some questions, is that okay?

    Thank you,

    Cliff Chadwick

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Cliff,

    Just ask when you have a question, and no Mr, we are friendly here

  7. #7
    VBAX Newbie
    Joined
    Feb 2006
    Location
    Minesing
    Posts
    4
    Location
    Hello Xld,

    Thank you for being friendly. I will come back with more questions.

    Cliff Chadwick

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •