Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Hiding columns

This is driving me mad. Can anyone suggest what the problem may be.

I have a simple line of code

If bMy = False Then
Worksheets("Cim").Range("A1:EY1").EntireColumn.Hid den = True

Which keeps falling over in the second part with the "Unable to set the
Hidden property of the Range Class" message.

Using the Immediate window I can succesfully hide A1:ET with:-
Range("a1:et1").EntireColumn.Hidden=true

but as soon as I change this to
Range("a1:eu1").EntireColumn.Hidden=true

I get the error message.

It suggests that there's some characteristic of column EU that it
doesn't like, but I'm at a loss to understand what it may be.

Any ideas??

Usual TIA

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Hiding columns

Is that worksheet protected in any way?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Richard" wrote in message
ups.com...
This is driving me mad. Can anyone suggest what the problem may be.

I have a simple line of code

If bMy = False Then
Worksheets("Cim").Range("A1:EY1").EntireColumn.Hid den = True

Which keeps falling over in the second part with the "Unable to set the
Hidden property of the Range Class" message.

Using the Immediate window I can succesfully hide A1:ET with:-
Range("a1:et1").EntireColumn.Hidden=true

but as soon as I change this to
Range("a1:eu1").EntireColumn.Hidden=true

I get the error message.

It suggests that there's some characteristic of column EU that it
doesn't like, but I'm at a loss to understand what it may be.

Any ideas??

Usual TIA



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding Columns Gord Dibben Excel Discussion (Misc queries) 0 February 25th 09 08:49 PM
hiding columns [email protected] Excel Discussion (Misc queries) 3 July 12th 06 04:42 PM
Hiding Columns lehigh46 Excel Worksheet Functions 2 November 28th 05 11:41 PM
Hiding Columns belony Excel Discussion (Misc queries) 4 June 15th 05 12:27 AM
Hiding columns Adam Excel Discussion (Misc queries) 2 March 31st 05 05:07 PM


All times are GMT +1. The time now is 03:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"