Expert needed

Status
Not open for further replies.

SQUIDD

Well-known Member
Joined
Jan 2, 2009
Messages
2,104
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hello everyone

I have some code written that does what it is meant ot do.
The process.
  • First it uses numbers that i enter into sheet NUMBERS column A starting at A1 to do a web query.
  • Then it uses the data that is returned to do 6 more web querys on different sheets.
  • then it copy's and pastes relevant info from all this data into sheet data starting at A1 and finishing at A39.(the data is 39 rows long)
what i need to do is make it do this process again once it has finished but use the next cell down in sheet NUMBERS which would be A2, it would then run my processes as described above and copy and paste the relevant info into sheet data but starting at A40 and finishing at A79.(This number is a constant +40).

The cycle would end if there are no more numbers in column A on sheet NUMBERS.

Any one know if this can be done, i know i could write the code several times but I have about 2500 numbers to put into Sheet NUMBERS.

So some sort of loop would be very handy.

Thankyou in advance,

Dave
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Posting the code will be of some help because you need to call that procedure in another macro nesting the cycle from A1 to 2500 (or whatever number of rows you have there in the NUMBERS sheet) and make it write in the other sheet based on the "constant +40" as you said. In this respect the procedure you have must be "upgraded" with some more parameters (at least two, or maybe not, but we can't know this unless you post the code) and maybe (not sure though) needs some minor adjustments to use those extra parameters (or not ... who knows?).
 
Upvote 0
Please continue in that post.

If you feel your post has been ignored, you can always respond to it with "BUMP" to move it up in the page ranks.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,203,467
Messages
6,055,589
Members
444,800
Latest member
KarenTheManager

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