View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 234
Default Insert column and hide columns

Francois, thanks however the columns aren't concurrent, eg I want to hide c,
e, m, j, x

Regards, Rob

"Francois via OfficeKB.com" <u18959@uwe wrote in message
news:80fc6b5184ea6@uwe...
Rob wrote:
I need to hide a number of columns in a sheet and have used Columns
("C:C").EntireColumn.Hidden = True. This is fine but I have 15 columns
to
hide and having 15 rows of code seems excessive. Is there a way to
declare
the columns and thus apply in less rows of code?

Also, have similar issue with inserting where to say I want to insert 3
rows, I have 3 rows of code.

Thanks, Rob


Or:-
("C:Z").EntireColumn.Hidden = True.


--
Message posted via http://www.officekb.com