Mark Dev
12/14/2006 3:30:00 PM
Gary,
Just select one cell from each of the columns then use the
EntireColumn.Hidden method of the selection.
Range(Cells(1, 7), Cells(1, 10)).Select
Selection.EntireColumn.Hidden = True
You can substitute your own variables for the "7" and "10" above if you want
to hide some other columns instead.
Regards,
Mark
"Gary Keramidas" <GKeramidasATmsn.com> wrote in message
news:u8G3SyzHHHA.4760@TK2MSFTNGP03.phx.gbl...
> ok, thanks guys, one other question.
>
> how do i hide a range of columns using column numbers?
>
> something like:
> columns(7,10).hidden = true
>
>
> --
>
>
> Gary
>
>
> "Dave Peterson" <petersod@verizonXSPAM.net> wrote in message
> news:4580D57C.868C61FE@verizonXSPAM.net...
>> In the activewindow???
>>
>> msgbox activewindow.selectedsheets.count
>>
>>
>>
>> Gary Keramidas wrote:
>>>
>>> how do i determine if more than 1 worksheets is selected?
>>>
>>> --
>>>
>>> Gary
>>
>> --
>>
>> Dave Peterson
>
>