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?
 

Some videos you may like

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Rijnsent

Well-known Member
Joined
Oct 17, 2005
Messages
1,270
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,969
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.

 

Watch MrExcel Video

Forum statistics

Threads
1,099,548
Messages
5,469,351
Members
406,647
Latest member
ssinovec

This Week's Hot Topics

Top