Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Prog. Hide range and indiv. columns?
Is it possible to hide a range of columns programatically as well as
additional free floating columns elswhere on the work sheet. For instance, this hides a range:: Columns("C:N").Select Selection.EntireColumn.Hidden = True But, what I really want to achieve is this: Columns("C:N, P, Y, W").Select Selection.EntireColumn.Hidden = True ....Of course, this throws up an error...is there a way to rephrase this code to make it do what I want? Many thanks Jason Excel 2000 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Prog. Hide range and indiv. columns?
I use this kind of syntax:
Range("C:N,P:P,Y:Y,W:W").EntireColumn.Hidden = True wrote: Is it possible to hide a range of columns programatically as well as additional free floating columns elswhere on the work sheet. For instance, this hides a range:: Columns("C:N").Select Selection.EntireColumn.Hidden = True But, what I really want to achieve is this: Columns("C:N, P, Y, W").Select Selection.EntireColumn.Hidden = True ...Of course, this throws up an error...is there a way to rephrase this code to make it do what I want? Many thanks Jason Excel 2000 -- Dave Peterson |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Prog. Hide range and indiv. columns?
Hi Jason,
Range("C:N,P:P,Y:Y,W:W").EntireColumn.Hidden = True -- HTH RP (remove nothere from the email address if mailing direct) wrote in message ... Is it possible to hide a range of columns programatically as well as additional free floating columns elswhere on the work sheet. For instance, this hides a range:: Columns("C:N").Select Selection.EntireColumn.Hidden = True But, what I really want to achieve is this: Columns("C:N, P, Y, W").Select Selection.EntireColumn.Hidden = True ...Of course, this throws up an error...is there a way to rephrase this code to make it do what I want? Many thanks Jason Excel 2000 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Prog. Hide range and indiv. columns?
Awesome thank you!
"Dave Peterson" wrote in message ... I use this kind of syntax: Range("C:N,P:P,Y:Y,W:W").EntireColumn.Hidden = True wrote: Is it possible to hide a range of columns programatically as well as additional free floating columns elswhere on the work sheet. For instance, this hides a range:: Columns("C:N").Select Selection.EntireColumn.Hidden = True But, what I really want to achieve is this: Columns("C:N, P, Y, W").Select Selection.EntireColumn.Hidden = True ...Of course, this throws up an error...is there a way to rephrase this code to make it do what I want? Many thanks Jason Excel 2000 -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How can I hide a range of columns without hiding charts there? | Charts and Charting in Excel | |||
Is there a way to hide worksheets and/or rows/columns based on information enter into a particular cell of range of cells? | New Users to Excel | |||
Hide columns & rows that contain "0" or blank in a range of cells | Excel Worksheet Functions | |||
How to hide a Range of Columns? | Excel Programming | |||
How to hide a Range of Columns? | Excel Programming |