Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Newbie question: I have a row with mutliple sequences of weekdays (MO TU WE TH FR SA SU MO TU WE TH FR SA SU MO TU WE TH FR SA SU...) all containing different values. What is the easiest way to show only a specified day...for example Wednesdays? Many thanks. Paul |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Paul,
You could hide/unhide columns: Sub HideselectedCol(byval Day as string) For i = 1 To 256 If Cells(1, i) < Day Then Columns(i).Hidden = True Next i End Sub Sub mytest HideSelectedCol "MO" end Sub UnHideselectedCol() For i = 1 To 256 If Columns(i).Hidden = True Then Columns(i).Hidden = False Next i End Sub "Paul" wrote: Hi, Newbie question: I have a row with mutliple sequences of weekdays (MO TU WE TH FR SA SU MO TU WE TH FR SA SU MO TU WE TH FR SA SU...) all containing different values. What is the easiest way to show only a specified day...for example Wednesdays? Many thanks. Paul |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Paste this into a Standard Module:
Code assumes your first MO is in cell C1 and rightward from there.. Also Cell A1 contains your criteria say, WE Sub Foo() Range("C1").Select Do Until ActiveCell = "" If ActiveCell.Value < Range("A1").Value Then ActiveCell.EntireColumn.Hidden = True End If ActiveCell.Offset(0, 1).Select Loop End Sub "Paul" wrote: Hi, Newbie question: I have a row with mutliple sequences of weekdays (MO TU WE TH FR SA SU MO TU WE TH FR SA SU MO TU WE TH FR SA SU...) all containing different values. What is the easiest way to show only a specified day...for example Wednesdays? Many thanks. Paul |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I want to show only the first three columns | Excel Worksheet Functions | |||
Subtotal show more columns | Excel Discussion (Misc queries) | |||
Only show certain columns | Excel Worksheet Functions | |||
Show data in columns | Excel Discussion (Misc queries) | |||
show all columns in a worksheet | Excel Programming |