jasonfuchs70
New Member
- Joined
- Jul 19, 2016
- Messages
- 6
Thanks to all who will participate, I am a new poster here, so apologize if I'm not following protocal. What I have is a table of data with 3 columns. The first column represents "yardage" in increments of 25 yards. The next 2 columns represent ballistic performance characteristics which are calculated based upon the "yardage" value in column A. At the same time, I have cell F1 which I input the required yardage number to calculate on. This number (in F1 only appears once in the Column A "yardage" range. What I am trying to do is the following:
1)enter value in cell F1 (number shall be in increments of 25 yards)
2)when user enters value of "150" in "F1", VBA code will search "Yardage" column to find cell with "150" in it.
3)Cell found with the value of "150" in the yardage column will be made the "Active Cell" in the worksheet.
4)once set as active cell, offset 2 rows over, and this will be the cell utilized in "solver" to set as zero
I have everything working with VBA currently, but am using "if statements" in VBA to loop thru solver code set for increments of 100 yards. So each time I enter a value in F1, it must be in an increment of 100, and the time it takes to go thru the loop has become overwhelming. I think the above approach, will be more efficient, and user friendly. Ultimately will build a drop down box with yardage values in 25 yd. increments the user can only select from.
thanks
<tbody>
</tbody>
1)enter value in cell F1 (number shall be in increments of 25 yards)
2)when user enters value of "150" in "F1", VBA code will search "Yardage" column to find cell with "150" in it.
3)Cell found with the value of "150" in the yardage column will be made the "Active Cell" in the worksheet.
4)once set as active cell, offset 2 rows over, and this will be the cell utilized in "solver" to set as zero
I have everything working with VBA currently, but am using "if statements" in VBA to loop thru solver code set for increments of 100 yards. So each time I enter a value in F1, it must be in an increment of 100, and the time it takes to go thru the loop has become overwhelming. I think the above approach, will be more efficient, and user friendly. Ultimately will build a drop down box with yardage values in 25 yd. increments the user can only select from.
thanks
A1 | B1 | C1 | D1 | E1 | F1 | G1 | H1 |
Yardage | Velocity | Drop | 150 | Input Desired Yardage | |||
0 | |||||||
25 | |||||||
50 | |||||||
100 | |||||||
125 | |||||||
150 | |||||||
175 | |||||||
200 |
<tbody>
</tbody>