LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Hiding columns in a named range

try this
Sub hidecolinrng()
'Range("hiderng").Cells(1, 3).EntireColumn.Hidden = False
Range("hiderng").Range(Cells(1, 3), Cells(1, 4)).EntireColumn.Hidden = True
'FALSE
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"malcomio" wrote in message
...
Is there a way of hiding columns in named ranges in VBA? I've got a load
of
columns that I want to show and hide, but I might want to add other
columns
in the worksheets later, so named ranges would make life easier.

I would have thought it was simple, but I just get an error that I'm
"unable
to set hidden property of range class"


 
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
unhide columns in named range blonde1030 Excel Programming 1 June 26th 07 10:27 PM
Hiding rows that are included in a named range Barb Reinhardt Excel Programming 1 November 1st 06 04:47 PM
How can I hide a range of columns without hiding charts there? dbsavoy Charts and Charting in Excel 2 August 31st 06 04:30 PM
Named Range - Empty columns Tempy Excel Programming 8 July 8th 04 03:56 PM
Hiding Blank lines in named range Carl Brehm Excel Programming 3 August 8th 03 05:17 PM


All times are GMT +1. The time now is 06:49 PM.

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

About Us

"It's about Microsoft Excel"