Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to hide colums

Status
Not open for further replies.

warshauer

IS-IT--Management
Mar 19, 2006
20
0
0
US
Within excel I am able to hide colums to a certain point,
then it tells me cannot shift objects sheet. anyone ever
see this before. I cannot find anything on this.

Thank you
 
Excel may be erroneously reporting the used range. I am sure this is going to sound weird, but, select all cells in the worksheet (CTRL/A); go to format, row, autofit and try again.

Else, you may have merged cells on your worksheet. If you don't know if there are, here is a macro to test test for them (courtesy contextures.com)

Sub TestForMergedCells()

Dim AnyMerged As Variant

AnyMerged = ActiveSheet.UsedRange.MergeCells

If AnyMerged = False Then
MsgBox "no merged"
ElseIf AnyMerged = True Then
MsgBox "all merged"
ElseIf IsNull(AnyMerged) Then
MsgBox "mixture"
Else
MsgBox "never gets here--only 3 options"
End If

End Sub



 
Get rid of all cell comments, and then see if you can do it.

Cheers, Glenn.

Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.
 
Thanks for all the info,

We will see what happens.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top