G
Gary
I am trying to locate a value from file1 in file2 and
then copy a number to a cell in the same row. The copy
part works but it doesn't seem to locate the appropriate
line. See below. It ends up copying the value to column L
on the bottom of the data in file2. Help.
Sub sale2004()
Windows("file1.xlt").Activate
Dim rngCell As Excel.Range
Set rngCell = ActiveSheet.Range("F3")
rngCell.Select
Windows("file2.xls").Activate
Dim FndRng As Excel.Range
Set FndRng = ActiveSheet.Range("S:S").Find(rngCell)
ActiveCell.Offset(0, 11).Activate
........
then copy a number to a cell in the same row. The copy
part works but it doesn't seem to locate the appropriate
line. See below. It ends up copying the value to column L
on the bottom of the data in file2. Help.
Sub sale2004()
Windows("file1.xlt").Activate
Dim rngCell As Excel.Range
Set rngCell = ActiveSheet.Range("F3")
rngCell.Select
Windows("file2.xls").Activate
Dim FndRng As Excel.Range
Set FndRng = ActiveSheet.Range("S:S").Find(rngCell)
ActiveCell.Offset(0, 11).Activate
........