Consulting

Results 1 to 3 of 3

Thread: Solved: Hide columns

  1. #1

    Solved: Hide columns

    Hi! I've got a problem. I would like for a sub to check if a cell called V_40100 says "TRUE".

    IF TRUE: Hide columns; get columns to hide in a cell named V_40200 (value=22:32) in worksheet "Post".

    IF FALSE: Unhide above columns

    Anyone got an idea?

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

    Columns(Worksheets("Post").Range("V_40200").Value2).Hidden = Range("V_40100").Value2
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Quote Originally Posted by xld
    [vba]

    Columns(Worksheets("Post").Range("V_40200").Value2).Hidden = Range("V_40100").Value2
    [/vba]
    Works Perfectly! Thanks!

Posting Permissions

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