Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding columns in Excel using VB

Status
Not open for further replies.

enak

Programmer
Jul 2, 2002
412
0
0
US
I am trying to hide some columns in excel using VB6. Here is what I have so far:

.Columns("F:H").Select
.Selection.EntireColumn.Hide

The first line works fine but when the spreadsheet is displayed on the screen the columns are highlighted but are not hidden.

How can I do this?

TIA
Nate
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top