Macro to filter map coordinates
I am looking for a macro that can do the following:
1. For every sheet that exists in the workbook (I may add others) except for sheets: “Instructions”, “Instructions2”, and “Comps”:
take my distance formula (that I placed in C2 of Sheets 4-7) and plug in the cell coordinates for each row that has coordinates in sheet “Comps” . For example Sheet 4 formula will look like this for Row 2: “=GetMiles($A2,$B2,Comps!A2,Comps!B2)”
2. Then if the formula value yields a number less than 25 I would like to copy the entire row from the “Comps” sheet (A:Z) and paste it in order (no gaps)starting on row 5 of the corresponding sheet. For example, the formula above yields a distance of 11.17 which is less than 25 so Row 2 of Comps should be copied and pasted in Row 5 of Sheet 4 reading “33.4941639 -112.0377714 Phoenix AZ”
Can any one help me with this?
Bookmarks