Hi all, I'm trying to create a macro whereby I am able to pull Specific elements into certain cells In Excel from a Odds Checker site. So far I am able to do this in a very vague sense, as in i can pull data but its just not the data i need. For example, I wish to set a table format whereby I pull a horse name from a race into one cell, with the corresponding cells giving the the diffrent betting odds from the same webpage that are being offered. I do have some experience with VBA through A levels but i am new to Excel so please excuse any poor coding:
I figured that by performing the loop I would be able to see what order the elements came in so then if i wanted say the 5th aTD value, i could change the
Range("Horsename1").Value = aTD(1) to Range("Horsename1").Value = aTD(5), & this way show the specific text i want in that particular cell. & then if the element is in the aTR element i could do the same & simply reference that. However, When i do this it just seems to pull all of the values in the aTD rather than trimming it down. Also, when the code is correct I plan on adding many more cell values Into the final peice of the code, the table bill be approximately 5*5. Please Help!! I am also thinking to use the GetElementById rather than the by tagname, but whenever i do this i get run time errors & can never pull the data. Any kind of help would be very usefull!! Thank you :D
Bookmarks