Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Promote / Demote

I will like to hide and exanpand columns in a spread
sheet. I was sucesfully doing this grouping the columns in
the Data menu and using the outline function. Does anybody
know hat to hide and show the columns fron a VBA code?

Thanks,

Giuseppe
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Promote / Demote

Hi,

To hide the columns A to K :
Columns("A:K").Hidden = True

to show :
Columns("A:K").Hidden = false

With a loop you can do the same thing as follows :

Dim i as integer

i = 1

For i = 1 to 10

Columns(i).Hidden = true

Nex

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Promote / Demote

The easiest way is to record a macro while you do it.

Regards
BrianB
==========================================


"Giuseppe" wrote in message ...
I will like to hide and exanpand columns in a spread
sheet. I was sucesfully doing this grouping the columns in
the Data menu and using the outline function. Does anybody
know hat to hide and show the columns fron a VBA code?

Thanks,

Giuseppe

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
How to promote/demote Excel rows to new outline group level? GY2 Excel Discussion (Misc queries) 0 February 17th 10 02:55 PM
Promote Your Website 72865 Hughes Excel Worksheet Functions 0 August 10th 08 09:14 PM
Get paid to promote my site D Host Promo Excel Worksheet Functions 0 November 16th 05 03:57 PM
Get paid to promote my site D Host Promo Setting up and Configuration of Excel 0 November 16th 05 03:57 PM
Get paid to promote my site D Host Promo Links and Linking in Excel 0 November 16th 05 03:56 PM


All times are GMT +1. The time now is 08:34 PM.

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"