+ Reply to Thread
Results 1 to 1 of 1

VBA loop through range and hide column

  1. #1
    Registered User
    Join Date
    08-13-2012
    Location
    UK
    MS-Off Ver
    Excel 2003 & 2007 (Different offices)
    Posts
    19

    VBA loop through range and hide column

    Note: Using excel 97/2003

    Hi there,

    this is a bit rough, but its only the second time i've tried using a loop through a range, so its as likely i'm doing something wrong there as anything else.

    Basically i want the code to go through each cell in the range "teamcheck" and hide the entire column of any cells that does not match the value output from a combo box, (typical values are "2-5", "6-8", "admin" or "SnrMngmnt".

    (owing to nature of spreadsheet, i can't switch things around and achieve this through a filter . . . . unless someone can tell me how to apply a filter horizontally through columns instead of rows?? even at that though, i'd like to know if what i'm trying to do via VBA can be done, so i can apply the logic elsewhere)

    Any help appreciated by this VBA newbie.



    Please Login or Register  to view this content.
    Last edited by mdoherty83; 09-19-2012 at 04:36 PM. Reason: adding the bit about excel 20003
    I've seen the future.You didn't make it

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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