Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
once again, i'm having a problem selecting an entire column(s):
the following code consistently selects more columns than i want: Columns("E:R").Select With Selection .columnwidth = 10.25 .EntireColumn.Hidden = False End With Columns("S:T").Select With Selection .EntireColumn.Hidden = True End With Columns("U:U").Select With Selection .columnwidth = 13 End With as always, thanks in advance mark |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
No need to select at all:-
Sub Cols() With Columns("E:R") .ColumnWidth = 10.25 .EntireColumn.Hidden = False End With With Columns("S:T") .EntireColumn.Hidden = True End With With Columns("U:U") .ColumnWidth = 13 End With End Sub or Sub Cols() With Columns("E:R") .ColumnWidth = 10.25 .EntireColumn.Hidden = False End With Columns("S:T").EntireColumn.Hidden = True Columns("U:U").ColumnWidth = 13 End Sub -- Regards Ken....................... Microsoft MVP - Excel Sys Spec - Win XP Pro / XL 00/02/03 ---------------------------------------------------------------------------- It's easier to beg forgiveness than ask permission :-) ---------------------------------------------------------------------------- "mark kubicki" wrote in message ... once again, i'm having a problem selecting an entire column(s): the following code consistently selects more columns than i want: Columns("E:R").Select With Selection .columnwidth = 10.25 .EntireColumn.Hidden = False End With Columns("S:T").Select With Selection .EntireColumn.Hidden = True End With Columns("U:U").Select With Selection .columnwidth = 13 End With as always, thanks in advance mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.594 / Virus Database: 377 - Release Date: 24/02/2004 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to Delete entire rows by selecting different text in column A | Excel Discussion (Misc queries) | |||
Row-Entire row changes color (and stays) selecting first entry | Excel Discussion (Misc queries) | |||
i want to highlight entire row when selecting a cell in that row | Excel Discussion (Misc queries) | |||
Keyboard shortcut or selecting entire column | Excel Worksheet Functions | |||
Macro for selecting entire row from mouse cell selection | Excel Programming |