0

I have a button that calls a sub DBA()

I would like this sub to visit a particular URL (for example: https://index.db.com) and copy all of the content and paste it into Application.Worksheets("DBA").

More specifically, I would ideally like to copy and paste the contents from a div that has an id="constituentstable" in the URL's HTML

Grateful for any guidance, thank you,

Jaqx
  • 826
  • 3
  • 14
  • 39

1 Answers1

0

A very basic approach would be to use SendKeys. I'm not experienced in opening websites with Excel, but once you have it open, just use

Application.SendKeys "^A", True
Application.SendKeys "^C", True

and that will select everything in the website and copy it's contents. But I think it would be helpful to look at the link on the comment of your post.

icebird76
  • 742
  • 3
  • 14
  • 36