Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How can I find a specific string in a worksheet and then select a specific
range of cells underneath this cell with the text entry and then calculate something with the selected data? Could somebody provide some sample code? Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Option Explicit
Sub FindText() Dim oCell As Range For Each oCell In ActiveSheet.UsedRange If oCell = "Some Text" Then Range(oCell.Offset(1, 0), oCell.Offset(15, 4)).Select 'do something with this range End If Next oCell End Sub "bandy2000" wrote: How can I find a specific string in a worksheet and then select a specific range of cells underneath this cell with the text entry and then calculate something with the selected data? Could somebody provide some sample code? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
find common text in cell in column in sheet then return total amou | Excel Worksheet Functions | |||
How do I repeatedly find text in an Excel sheet? | Excel Worksheet Functions | |||
Find text in cell, copy row to new sheet | Excel Discussion (Misc queries) | |||
how to find and copy values on sheet 2, based on a list on sheet 1 | Excel Programming | |||
Find all text instances in a sheet and add one number from each row | Excel Discussion (Misc queries) |