+ Reply to Thread
Results 1 to 2 of 2

Module to Hide Columns

  1. #1
    Registered User
    Join Date
    06-30-2010
    Location
    Tucson, Arizona
    MS-Off Ver
    Excel 2007
    Posts
    58

    Module to Hide Columns

    Hello all,

    I am trying to create a module which I can call via a button click on one worksheet such that it hides columns on another worksheet. However, I am having trouble selecting the ranges on my "Results" worksheet. Here is what I have

    Please Login or Register  to view this content.
    I think My trouble lies in the Me.Range call when I am trying to hide columns, but I don't know what I should be using instead.

    Thanks in advance!

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Module to Hide Columns

    In VBA you do not need to select sheets/cells/ranges to act on them - simply reference them (make sure the reference is properly qualified).

    This code uses the sheet code name and not the worksheet name (shown in the sheet tab). Change the sheet code name to whichever sheet is the Results sheet.

    Please Login or Register  to view this content.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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