Trawl directory, format that data into a new list

cleareyes

New Member
Joined
Oct 16, 2012
Messages
5
Hello, I'm working on a project in VBA for Excel and the web. The goal is to trawl a college's Business School directory for a list of professors and their contact information. Once the data is collected I need to write a loop that will go through all of the individuals and paste their name/address/etc onto a master list.
So far I have been able to collect the data from the web and paste it into another sheet. However, I don't know exactly how to start constructing the for loop to go through all the individuals and paste their respective information onto the new list/sheet. I have two images that demonstrate better what I am getting at.


First, this is what the data looks like when I collect it.
l78uq.jpg


Then I need to put the data into a list on another sheet, for example, this would be the first entry.
tfWpT.jpg


I'd imagine I'll have to hard code the first 6 digits of the telephone number since they only give you the last 4. Address information is all in cell A57 and appears as "4205 Ryan Street, Lake Charles, LA 70609" Every member will have this address.
"McNeese State University" is located at cell A61. Every member will have this University Name.
"College of Business" will probably be hardcoded. Every member will have this Business School Name.
"http://ww2/mcneese.edu/colleges/bus" will probably be hardcoded as the link on their website is to a 404. Every member will have this Business School URL.
I'm trawling the data from "http://ww2.mcneese.edu/colleges/bus/directory.asp" Every member will have this URL.


Any idea as to how this for loop should look? Any help is appreciated.
 
Last edited:

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,215,206
Messages
6,123,639
Members
449,111
Latest member
ghennedy

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