Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 160
Default Hide / unhide column in VBA

How do i hide and unhide a column using VBA
Thanks

--
Patrick
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Hide / unhide column in VBA

Hi Patrick

Sheets("sheet1").Columns("A:C").EntireColumn.Hidde n = True

False to get them back

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Patrick" wrote in message ...
How do i hide and unhide a column using VBA
Thanks

--
Patrick



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Hide / unhide column in VBA


With Worksheets("Sheet1").Columns("A")
.Hidden = Not .Hidden
End With

--

HTH

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


"Ron de Bruin" wrote in message
...
Hi Patrick

Sheets("sheet1").Columns("A:C").EntireColumn.Hidde n = True

False to get them back

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Patrick" wrote in message

...
How do i hide and unhide a column using VBA
Thanks

--
Patrick





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
hide, unhide column or row after protect worksheet tiny[_2_] Excel Discussion (Misc queries) 2 May 14th 09 04:23 PM
How do I set up a column tool to hide/unhide? pufimic Excel Discussion (Misc queries) 1 October 27th 06 01:26 AM
How do I hide or unhide row and column heading in Excel? Maharaj Excel Worksheet Functions 1 July 25th 06 06:02 PM
Check Box Macro to hide and unhide a column Daphne Excel Worksheet Functions 9 June 26th 06 01:50 PM
Macro that will always hide / unhide next column Kirby[_3_] Excel Programming 2 June 7th 04 10:21 PM


All times are GMT +1. The time now is 06:19 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"