Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a data range called AssayDescList that is imported from a database in
column C. How can I programatically check if the ActiveCell is placed within that data range? Here is what I came up with so far: Sub AssayListInsert() Dim Row As Integer, Cell As Range, AssayDescList As Name Row = 7 Do While Not Range("B" & Row) = "" Row = Row + 1 Loop For Each Cell In Range(AssayDescList) If Cell.Address = ActiveCell.Address Then Range("B" & Row).Value = Left(ActiveCell, 4) Exit Sub End If Next End Sub Can anyone help me correct this or even suggest an easier way? Thanks The Doctor |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Narrow Range based on Selection in Another Range | Excel Discussion (Misc queries) | |||
Identifying a selection of a selection of a range | Excel Worksheet Functions | |||
re-selection of Chart data range using keyboard | Excel Worksheet Functions | |||
Excel VBA - Range(Selection, Selection.End(xlDown)).Name issue. | Excel Programming | |||
Creating range name for a range selection | Excel Programming |