The_Rock
Board Regular
- Joined
- Jul 2, 2007
- Messages
- 174
Hi
Hoping you guys can help with the below.
So what the code is doing is it is searching for 'Global Name' in Col M and then moves down a row to where the formula's are stored.
I then want to copy the formula's down for the number of rows in Col L.
I can't find the right code to do as it is mixing relative references with fixed??
Note: Global Name can appear in any cell in Column M which is why I am using search and offset.
Appreciate your help.
Thanks
Hoping you guys can help with the below.
So what the code is doing is it is searching for 'Global Name' in Col M and then moves down a row to where the formula's are stored.
I then want to copy the formula's down for the number of rows in Col L.
I can't find the right code to do as it is mixing relative references with fixed??
Note: Global Name can appear in any cell in Column M which is why I am using search and offset.
Code:
''Find first line of formula and copy down
Columns("M:M").EntireColumn.Select
Selection.Find(What:="Global Name", After:=ActiveCell, LookIn:=xlFormulas _
, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
ActiveCell.Offset(1, 0).Range("A1:C1").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.FillDown
Appreciate your help.
Thanks