Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excel Experts,
I would like to select a range offset to the right from the original range based on the column headings. My spreadsheet is similar to the following A B C D 1 Acct Entry 2 3 4J6N 15 4 4J6N 15 5 4J6N 15 6 4J6N 15 7 Set St4J6N = Cells.Find(What:="4J6N").Select Range("A100").Select Set End4J6N = Cells.Find(What:="4J6N", SearchOrder:=xlByColumns, _ SearchDirection:=xlPrevious) Set rng4J6N = Range(St4J6N, End4J6N) Set EntryS = Cells.Find(What:="Entry") trd4J6N.Offset(, D1EntryS.Columns.Count - trd4J6N(1).Columns.Count).Select End Sub The final line isn't working. My goal is to select cells C3..C6. What code will do this? Thanks in advance. Alan -- achidsey |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Return Column Heading based on value in row | New Users to Excel | |||
Row filtering based on input box entry (column heading) | Excel Worksheet Functions | |||
Select cells based on named Range and a column heading | Excel Programming | |||
Formatting a range based on contents of column/row heading | Excel Programming | |||
Formatting a range based on contents of column/row heading | Excel Programming |