VBA - Loop a Copy/paste followed by a Vlookup

Tcherke

New Member
Joined
May 4, 2017
Messages
3
Hi Excel community, :)

I am currently doing the following using VBA :

- Copy the coordinates in AW5:AX5 ;
- Paste these in cells B3:B4 on Sheet "Sunset Calculation"
- Then using Vlookup, I retrieve the 'Sunset time' found on the "Sunset Calculation" sheet in column Z based on the date of duty.

I am trying to use this in a loop for the range AW5:AX36, avoiding the blank cells in that range.

I already thank you all for your help on this.

Arnaud

1657614036013.png


1657614171306.png
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Pls post your current code, and post a sample mini sheet via XL2BB
 
Upvote 0

Forum statistics

Threads
1,215,544
Messages
6,125,441
Members
449,225
Latest member
mparcado

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top