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
Bookmarks