Download data from website that requires login id and password

hazelsnowy

New Member
Joined
Oct 4, 2019
Messages
1
I want to do a macro (hopefully record macro) and need to extract data from a website that requires a password. However, my colleagues have their own login ID and password, and i do not want to share my login ID and password with them. What should I do such that i can retrieve data from the website and not share my password and login ID? Also, there are many pop ups when downloading data from the website and i want it to click "yes". What should i do?
 

Rijnsent

Well-known Member
Joined
Oct 17, 2005
Messages
1,154
Office Version
365
Platform
Windows
Re: Urgent - download data from website that requires login id and password

Hi Hazelsnowy,
I assume you want to push a button somewhere in Excel to download the data from that website? In that case you could e.g. have a cell in Excel where the person that's using the sheet fills their username and/or password and have the macro use that cell contents. Otherwise you can show the user a pop-up asking them to input their username/password. The macro you're looking for is quite a bit more complicated than just recording it. You'll have to dive into VBA quite a bit to get this working, but I found that having a VBA skill can be massively time-saving & rewarding.
Cheers,
Koen
 

Worf

Well-known Member
Joined
Oct 30, 2011
Messages
3,802
Re: Urgent - download data from website that requires login id and password

Hazel snowy:


  • Another option is to hardcode the credentials into the VBA code and password protect it. Beginners will have trouble cracking it.
  • As for the code itself, it has to be done stepwise. What is the first page control to be filled or clicked? Right click it, choose inspect to get DOM information as exemplified below and paste the picture here so we can start building the macro.
  • Can you share the address of the site’s home page? This will be a bit difficult to do without actual access to the page for testing purposes.

 

Forum statistics

Threads
1,082,367
Messages
5,365,028
Members
400,819
Latest member
Gossow

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top