Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've got an Excel worksheet where the first column contains a keyword. I want to have a
button, or an option, or whatever, that I can click so that if the first column equals a certain word, then do not display the row containing that column. How can I do this, please??? Thanks! Vic |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub Hiderows()
Dim cell as Range for each cell in Activesheet.UsedRange.columns(1).Cells if instr(1,cell,"TestWord",vbTextcompare) then cell.EntireRow.Hidden = True else cell.EntireRow.Hidden = False end if Next End Sub -- regards, Tom Ogilvy "Victor" wrote: I've got an Excel worksheet where the first column contains a keyword. I want to have a button, or an option, or whatever, that I can click so that if the first column equals a certain word, then do not display the row containing that column. How can I do this, please??? Thanks! Vic |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you, Tom!
Vic |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sorting formula cells not same as sort of value cells? Yikes! | Excel Discussion (Misc queries) | |||
Auto-Sort Won't Sort All Column Cells | Excel Discussion (Misc queries) | |||
Sort all cells except one? | Excel Discussion (Misc queries) | |||
Sort a list with cells referring to others cells | Excel Discussion (Misc queries) | |||
sort spreadsheet, "merged cells" comes up. Find cells? Unmerge ? | Excel Discussion (Misc queries) |