Solved

VBA Excel - Hide All Columns But Column A

Posted on 2006-11-10
1
577 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Macro which automatically sends attachment to Outlook 14 78
MsgBox 2 59
Saving history changes to sub form 4 49
Need Nag Screen for Reboot if system up time is over 14 days 12 63
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

820 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