Consulting

Results 1 to 6 of 6

Thread: Solved: Unable to Hide Columns ... Why??

  1. #1

    Solved: Unable to Hide Columns ... Why??

    I have two workbooks that are structured identically. In one workbook I have no difficulty hiding a group of columns. In the other workbook I get the message ?Unable to set the Hidden property of the Range class? when I try to hide the identical columns with the identical VBA code. Here?s the code used:
     Range("AF:AL").Columns.Hidden = True    'Hide the entry
    What would normally trigger that message?

  2. #2
    Update: I just discovered that I also cannot hide the columns manually using the FORMAT tab. It gives me the error message "Cannot shift objects off sheet". I'll spend some time trying to find out where/what those objects are and see if I can clean it up. (I hate that message!!)

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    This article may help

    http://support.microsoft.com/default.aspx?kbid=211769
    "Cannot shift objects off sheet" error message when you hide columns in Excel
    ____________________________________________
    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

  4. #4
    VBAX Mentor anandbohra's Avatar
    Joined
    May 2007
    Location
    Mumbai
    Posts
    313
    Location
    can u attach the file with the codes u had used so that i can see where is the problem in executing the code

  5. #5
    Hey, XLD, good reference (I printed it out for next time).
    Thanx a lot.
    Sid

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I have a plethora of links to KB articles <G>.

    Glad it helped.
    ____________________________________________
    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

Posting Permissions

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