Ok so i have been working on this file for quite some time and have been programming in Excel for work for quite some time but now i am stumped.
I need to log into a website then go to a specific page and copy info from the page into excel. I wrote this code in about 5 minutes not a problem. Now that i have done that I have to get excel to click a radio button and hit the submit button. The problem is the only code i can get to work for this is very specific and you have to know the name and the value of the radio button in Internet explorer. This is a problem as the name of the button changes everytime you go to the page so does the value. Now part of the name stays the same but a number changes in the name and its not consecutive. Also there may not be a radio button at all but there maybe lots. think of it this way a list of new things you need to check and delete every hour the radio button selects delete and then you submit them. there maybe none for the hour or 100. this is my problem because unless I know the exact name i cant seem to get them to change maybe someone will know what to do. Here is my code for the exact name system to change the radio button.
Let me know how i can select them if i dont know there name.![]()
Set radio_button = IE.Document.all.Item("voice_mark_|1217541926|017|51") For Each rb In radio_button If rb.Value Like "S|L|" & "*" Then rb.Checked = True End If Next
Bookmarks