MarekSwiderski
New Member
- Joined
- Sep 13, 2023
- Messages
- 1
- Office Version
- 365
- Platform
- Windows
My dear community,
I am struggling to write a macro that will do the following steps and I would like to ask for your ideas:
I would like the macro loop the same steps for addresses marked as 1,2,3,4,..10 all the way to the highest value in 'Addresses' column A.
Step 1.
Copy data from 'Addresses' sheet, column C and D
Step 2.
Paste them in 'Calc, (C13:D17) , then wait for 10 sec for an API to pull data and display results in (C35:D36)
Step 3.
Copy data from 'Calc' (B35:D36) and paste as values in 'Addresses', Columns E:G, in the first two rows where where the same Set value from column A of the currently processed pair of addresses is found.
I have uploaded the file, however I disabled the mentioned API, so the macro for now will copy paste the same Distance and Travel time.
I am struggling to write a macro that will do the following steps and I would like to ask for your ideas:
I would like the macro loop the same steps for addresses marked as 1,2,3,4,..10 all the way to the highest value in 'Addresses' column A.
Step 1.
Copy data from 'Addresses' sheet, column C and D
Step 2.
Paste them in 'Calc, (C13:D17) , then wait for 10 sec for an API to pull data and display results in (C35:D36)
Step 3.
Copy data from 'Calc' (B35:D36) and paste as values in 'Addresses', Columns E:G, in the first two rows where where the same Set value from column A of the currently processed pair of addresses is found.
I have uploaded the file, however I disabled the mentioned API, so the macro for now will copy paste the same Distance and Travel time.