Consulting

Results 1 to 5 of 5

Thread: Solved: Hide columns not appearing in Sheet 3

  1. #1
    VBAX Expert Imdabaum's Avatar
    Joined
    Jun 2006
    Posts
    652
    Location

    Solved: Hide columns not appearing in Sheet 3

    Can I add a little dynamic to this post? I have an excel spreadsheet that goes to AD on sheet1, and AL on sheet2. I've copied the headers and pasted them transposed in A(sheet2 headers) B(sheet1 headers), and used a VLookup on C to find all common headers.

    I have been instructed to create a table based on the common fields, but rather than hunting from A:AL I'd like to just hide all the columns that don't appear in sheet3!C. Hope that makes sense, but I've dealt with Access for a while... I'd like to learn how to maximize my usability with Excel and this seems like a good training exercise.
    Someday I'll understand everything...
    Even then...I'll still pretend I'm a beginner.

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

    I moved this to its own post, it had nothing to do with the other thread.

    I am a bit lost on what should happen. Do you have a workbook with details on what needs to be done.
    ____________________________________________
    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
    VBAX Expert Imdabaum's Avatar
    Joined
    Jun 2006
    Posts
    652
    Location
    I was afraid it might not be relevant. It was done in 2007, but I tried to save it in 2003 compatible.
    Basically if I have two worksheets
    Sheet1
    A | B | C | D | E | F | G | H | I | >.... and so forth.

    Then on Sheet 2 I have the
    A | B | C | D | E | F | G | H | I | >.... and so forth.

    for each column the first row is the column header ie:
    Here's a sample, I hope you can figure out what I mean.

    Essentially I would like Sheet1 & 2 to hide the columns that do not appear in Sheet3 column D.
    Someday I'll understand everything...
    Even then...I'll still pretend I'm a beginner.

  4. #4
    VBAX Expert Imdabaum's Avatar
    Joined
    Jun 2006
    Posts
    652
    Location
    Worked around it with Access. I thought it'd be neat if I could hide the uncommon fields and then just copy and paste the remaining data into the Access Table. Since I couldn't figure out how to do that, I just opted to link the Excel sheets as tables in Access and run basic queries on them.
    Someday I'll understand everything...
    Even then...I'll still pretend I'm a beginner.

  5. #5
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,064
    Location
    Can we please ensure that threads have a title?
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

Posting Permissions

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