Solved

VBA Excel - Hide All Columns But Column A

Posted on 2006-11-10
1
574 Views
Last Modified: 2008-02-01
I need the VBA code that will hide all columns on the "Active" Sheet except for Column A, C and E.

Can anyone help?

0
Comment
Question by:CVGunx
1 Comment
 
LVL 35

Accepted Solution

by:
mvidas earned 250 total points
ID: 17917250
CVG,

 ActiveSheet.Range("B:B,D:D,F:IV").EntireColumn.Hidden = True

Cheers!
Matt
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question