I'm trying to make a "self study booklet" from different website pages by getting their content in one single Word document.
I use Documents.Open("URL LINK") then add some presentation code to stack them together, which works fine. However, I sometimes get to up to 50 urls.
To avoid having 50 sub pagenumberx () that are exactly the same except for one URL as well as have an overview of all the different URLs, I put them on a Word and want to change them directly on it, then have a macro read each link. I'm trying to use a FOR LOOP:
For j = 1 to 50
study = Documents.Open(ActiveDocument.Paragraphs(j).Range.Text)
Next j
However, this is what I get: Error 5174 Sorry, we couldn't find your file. Was it moved, renamed, or deleted? (https://the-url-that-i-put.com)
So obviously the code works since the link I put is correct in the error message but it seems that VBA only searches in my computer, and not online.
Anyone knows how to make it work please?
Regards, Lucy