+ Reply to Thread
Results 1 to 2 of 2

Macro to open links and save loaded page as PDF

  1. #1
    Registered User
    Join Date
    12-18-2019
    Location
    LA
    MS-Off Ver
    2016
    Posts
    2

    Macro to open links and save loaded page as PDF

    Hello every one.

    As the tittle says, I need a macro to open a link and save the loaded page as PDF using the name of the ID.

    Basically, I have an Excel Workbook and it has a list of ID's (see "Sheet1" of the book find here: h t t p s :/ / 1drv.ms / u / s!AtNNX9wOipPOgzrosh7LMNILDGJ7?e=1TaExr)

    One link + the ID let me open the web page that I need to save as PDF, for example: h t t p s: / / cdn.c.sat.gob.gt / rtu / constancia-rtu-portal?nit=21162484

    Once the webpage is loaded, at the end there is a blue button called "IMPRIMIR REPORTE", it lets to save the page as PDF.

    I got stucked on the vba code (see the Excel file) :/

    Any help woud be much appreciate.

    Thanks in advance.



    P.S.: In the attached there are three example Is, the second one will return an error when try to check the info because the ID doesn't exist, this is only for test purposes. And finally, If possible that type of cases should be skipped.




    Edit: I'm so sorry, I'm not allowed to post links, thats why you see the links in that way.
    Last edited by JoseT; 11-18-2021 at 11:57 PM.

  2. #2
    Registered User
    Join Date
    12-18-2019
    Location
    LA
    MS-Off Ver
    2016
    Posts
    2

    Re: Macro to open links and save loaded page as PDF

    Anyone please?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Open File / Copy Sheet / Break Links / Save As
    By lofgren in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2020, 04:34 PM
  2. Need to open links to PDFs and save them to a folder
    By msdelaney in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-22-2017, 04:15 PM
  3. Macro to Open Excel file, Update links, and Save
    By harry1013 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-01-2017, 01:17 PM
  4. to open a web page and verify that all its contents are loaded properly through a macro
    By dshekhawat in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-11-2016, 03:43 AM
  5. Macro to open, update links, save then close all files in sub folders
    By msdelaney in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-03-2015, 05:48 PM
  6. Macro to open web page and save as .xls
    By manmo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-13-2012, 04:17 AM
  7. Macro to open URL then save page as a text file
    By jasocke2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2009, 10:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1