Excel VBA Introduction Part 47.4 - Logging in to a Website with Windows Security

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 พ.ย. 2024

ความคิดเห็น • 60

  • @femaledeer
    @femaledeer 5 ปีที่แล้ว

    This is way above my head. I have no idea what you are trying to connect to that requires windows security.

  • @fjschneider
    @fjschneider 5 ปีที่แล้ว +1

    So thrilled to see you posting again!

  • @AntrikshSharma
    @AntrikshSharma 5 ปีที่แล้ว +3

    Now you have again raised the Bar with this!

  • @techconnectlearning
    @techconnectlearning 5 ปีที่แล้ว +2

    Andrew much awaited video. Thank you for uploading this. Really you are rockstar.

  • @1MinuteGaming
    @1MinuteGaming 5 ปีที่แล้ว

    I am so happy to see you make videos again!

  • @dominikba91
    @dominikba91 5 ปีที่แล้ว +7

    Hey Andrew, is there a way to combine "Logging in to a Website with Windows Security" with "downloading files form websites". First log in, then download the file automatically??

  • @janezklun
    @janezklun 5 ปีที่แล้ว

    Very interesting topic, Thank you Andrew, Cheers

  • @usmanw01
    @usmanw01 4 ปีที่แล้ว

    Enormously helpful! Thanks for this

  • @chandankumar-np9ez
    @chandankumar-np9ez 5 ปีที่แล้ว +1

    I have watched many of your videos and all are very good. I have one question. Is it possible to download Excel dump file from client website after doing logins into the website.

  • @mmbcampus
    @mmbcampus 2 ปีที่แล้ว

    As IE is dismissed, so do you have any alternative tutorial to populate web page form?

    • @WiseOwlTutorials
      @WiseOwlTutorials  2 ปีที่แล้ว +1

      Hi, have a look at the Selenium/Chrome videos in this playlist th-cam.com/play/PLNIs-AWhQzcl3xKvF8sVL4sWRWICj_clM.html
      I hope it helps!

  • @gameforfun__0566
    @gameforfun__0566 4 ปีที่แล้ว

    What's about default browser? XML one is not giving any visible output

  • @irdammauludi3389
    @irdammauludi3389 2 ปีที่แล้ว

    this tutorial was great,.
    but i still didnt understand how it work, can it be use to grab information inside the website without having credentials intstead we can use our windows security credentials?

    • @WiseOwlTutorials
      @WiseOwlTutorials  2 ปีที่แล้ว +1

      Hi Irdam! It only works if the website is configured to use Windows credentials with Active Directory services. It's unlikely that you'll encounter this on a public website. If you're interested in the technical details, here's the Microsoft documentation docs.microsoft.com/en-us/iis/configuration/system.webserver/security/authentication/windowsauthentication/

  • @mmtenyakov
    @mmtenyakov 5 ปีที่แล้ว

    Another issue im running into. ive tried different website as examples and when I run the macro. and I'm referring to the Sub LogintoWebPage() the simple code to navigate to the url that is in sheet one. well when I do that nothing happens, it acts as the code has ran but no internet explorer window opens up

  • @KhalilYasser
    @KhalilYasser 5 ปีที่แล้ว

    Thank you very much. Waiting for the file so as to make use of the presented codes or just share the code without the file to keep your credentials secure and safe

    • @KhalilYasser
      @KhalilYasser 5 ปีที่แล้ว

      @@WiseOwlTutorials Thank you very much for your interest and for your amazing tutorials. You are AWESOME

  • @kunwarjeeMandal-vv4oq
    @kunwarjeeMandal-vv4oq ปีที่แล้ว

    Hi Andrew, when i tried to run macro getting error like "The remote Server machine does not exist or is unavailable.
    Please help to resolve if possible.

  • @gameforfun__0566
    @gameforfun__0566 4 ปีที่แล้ว

    As feedback n all other credentials are confidential, can you Please use some other credentials or commonly used webpages to make entire process visible n clear ?

  • @VernonGibson
    @VernonGibson 4 ปีที่แล้ว

    What if the website uses Active Directory and only falls back up the login prompt if AD login fails? I'm on vacation and cannot test this tonight now but I'm curious if there's anything special needed got AD pages.

  • @DPaquette
    @DPaquette 4 ปีที่แล้ว

    What version of IE are you using in this video. We only have 11.0 here at work and I am on Office 2013 Pro Plus. The New "SHDocVW....." does not come up correctly.

  • @rbloesser9009
    @rbloesser9009 ปีที่แล้ว

    I would love to see a deeper dive into logging on with XMLHTTP. The simple use of USER and PASSWORD on the ".Get" line often does not work. I would like to see more about using APIs and reading a site to understand how to construct the request with headers, and what headers are used for, xml.getResponseHeader("Set-Cookie"), etc. Thanks for the great videos and great instruction. - R

    • @WiseOwlTutorials
      @WiseOwlTutorials  ปีที่แล้ว +1

      Thanks for the suggestions, they would definitely be good topics for more detailed videos!

  • @nakuladas3088
    @nakuladas3088 4 ปีที่แล้ว

    How to login to website, having to enter captcha then extract data from clicking different links or different table in different links?

  • @rakeshkumar-iw2nk
    @rakeshkumar-iw2nk 4 ปีที่แล้ว

    I tried to open a application using Excel VBA. I need to enter user name and password for Windows Security Alert. I have used the same code but send keys are not working in the dilaog box

  • @ezazhaider3466
    @ezazhaider3466 5 ปีที่แล้ว +1

    I have logged in a web page. Then a pop-up come with yes/ no option. I am unable to code for it. Plz upload a video for popups window

    • @WiseOwlTutorials
      @WiseOwlTutorials  5 ปีที่แล้ว

      Hi there, I'm not sure when or if I'll add a video on this topic but there are plenty of suggestions for ways to deal with popups over at Stackoverflow:
      stackoverflow.com/questions/14446951/how-to-intercept-and-manipulate-a-internet-explorer-popup-with-vba
      stackoverflow.com/questions/37664260/click-on-an-ie-window-without-sendkeys-or-mouseevent-vba/37665484#37665484
      stackoverflow.com/questions/52444685/handling-ie-pop-up-with-vba
      I hope one of those helps!

    • @harish6268
      @harish6268 3 ปีที่แล้ว

      I too have the same issue...and have searched for many websites but nothing is works.
      It would be great if you can upload us a video on the same...
      Which will be helpful for many users like us...
      Plze Sir

  • @The_Code_Father
    @The_Code_Father 2 ปีที่แล้ว

    Mr Andrew is there is a method to checkif i'm already logged into certain website with username and password like facebook
    i mean i wanna open facebook on google chrome without entering my username and password because they are already saved on chrome browser

    • @WiseOwlTutorials
      @WiseOwlTutorials  2 ปีที่แล้ว +1

      Hi! Sorry I don't know. I'd probably open Chrome with the user profile that you know is already logged in to Facebook (we have a video on how to open Chrome with a specific user profile).
      I hope it helps!

  • @michaelwakim7048
    @michaelwakim7048 3 ปีที่แล้ว +1

    Hello, I was wondering if you or anyone knows how, or if it is possible to switch from a guest profile on google chrome to a personal one using VBA in Excel. I am trying to log into a site that has 2 step authentication and if I could just use my own profile, then it would solve this issue. Also thank you for your tutorials, they have been extremely helpful.

    • @WiseOwlTutorials
      @WiseOwlTutorials  3 ปีที่แล้ว +1

      Hi Michael! Yes, you can set a user profile in Chrome using Selenium. Here's the basic code:
      Set cd = New Selenium.ChromeDriver

      'Point to the User Data folder
      cd.SetProfile "C:\Users\User Name\AppData\Local\Google\Chrome\User Data"

      'Choose one profile folder name
      'You can find the folder names in the User Data folder
      cd.AddArgument "profile-directory=Default"
      'cd.AddArgument "profile-directory=Profile 1"
      'cd.AddArgument "profile-directory=Profile 2"

      'Make sure there isn't already an open instance of Chrome using any profile in User Data
      cd.Start
      cd.Get "www.wiseowl.co.uk"
      I hope it helps!

    • @michaelwakim7048
      @michaelwakim7048 3 ปีที่แล้ว +1

      @@WiseOwlTutorials Thank you very much, that worked perfectly!

    • @WiseOwlTutorials
      @WiseOwlTutorials  3 ปีที่แล้ว

      @@michaelwakim7048 No problem Michael, happy to hear it helped!

  • @vaibhavvaidya6168
    @vaibhavvaidya6168 5 ปีที่แล้ว

    Hi, Its really a nice video. I am trying to access my project jira board but getting error. Could you help me is there something that need to change?

    • @WiseOwlTutorials
      @WiseOwlTutorials  5 ปีที่แล้ว

      I've never heard of JIRA but a Google search shows this method using an HTTP POST request
      community.atlassian.com/t5/Jira-questions/Excel-VBA-gt-JIRA-REST-API/qaq-p/513605
      community.atlassian.com/t5/Jira-questions/Access-JIRA-with-VBA-Excel-2010/qaq-p/590003

  • @mmtenyakov
    @mmtenyakov 5 ปีที่แล้ว +1

    When I run the code I get a Run-time error '-2147417848 (80010108)': Automation Error The object invoked has disconnected from its clients.
    When I click Debug, it highlights the "Do While IE.readyState READY_COMPLETE or IE.Busy Loop"I can't figure out what the issue is. Thanks

    • @marcelg5617
      @marcelg5617 3 ปีที่แล้ว

      Hi Mikhail, I have the same issue. Did you find a solution and can tell me how to proceed? Thanks a lot

    • @mmtenyakov
      @mmtenyakov 3 ปีที่แล้ว

      @@marcelg5617 I cant recall what my solution was, I know that I got it working. I'll need to do some checking and get back to you when I get a chance. :/

    • @marcelg5617
      @marcelg5617 3 ปีที่แล้ว +1

      @@mmtenyakov thanks a lot for the reply, but I found the solution already. It was a security setting in the internet explorer.

  • @andij.7387
    @andij.7387 3 ปีที่แล้ว

    Thanks Andrews, this video is really usefull. However i have faced the problem when login combine with google re-captcha. How do i solved this problem with excel vba? Shoul you please give me a hint? Thanks in advance.

    • @WiseOwlTutorials
      @WiseOwlTutorials  3 ปีที่แล้ว

      Hi Andi! Sorry, I don't know of a solution to this, recaptcha is explicitly designed to prevent the type of thing you're trying to do.

  • @PankajNegi007
    @PankajNegi007 5 ปีที่แล้ว +1

    Dear Sir,
    Thank for sharing so nice videos for VBA.
    But Sir My question is How can we data crawling from Google Chrome Using VBA like Internet Explorer.

    • @PankajNegi007
      @PankajNegi007 5 ปีที่แล้ว +2

      ​@@WiseOwlTutorials ---- Thanks Sir for your prompt reply & I am very glad to talk with you sir. One thing I want to add Sir since 4 -5 year back i don't know how to work with VBA then I started search in google or TH-cam how to learn VBA & where to start so that time i was so very confused that where i have to start VBA Programming. Then i search and i found your video WiseOwls and your video is Nice and very informative. Now i am very confident VBA Programming without doubt each and every topics in VBA Language is crystal clear Hats off sir Thanks Ones again sir and Keep it Up Andrew Sir.

    • @gameforfun__0566
      @gameforfun__0566 4 ปีที่แล้ว

      That's Exactly what I was thinking about ... What's about other brosers/default ones except IE?

  • @christiancoronado
    @christiancoronado 2 ปีที่แล้ว

    Hi Andrew, I am not sure how to navigate a website after I login using XML, is there a way to click on the links only using XML?

    • @WiseOwlTutorials
      @WiseOwlTutorials  2 ปีที่แล้ว

      Hi Christian! You can't really "click" links using the XMLHTTP request method - you're just returning the HTML as text so there isn't a web browser instance for you to click in. If you can identify the target URL of the thing that you would ordinarily click on you can use this to send another XMLHTTP request to return the next page as it were.
      Of course it may just be simpler to use a web browser in the first place!
      I hope it helps!

    • @christiancoronado
      @christiancoronado 2 ปีที่แล้ว +1

      @@WiseOwlTutorials Thank you Andrew, it does help. I've been playing with the Html and Xml libraries and I wanted to login into website and download some reports, I might be able to accomplish my goal using Selenium because internet explorer its pretty slow. Also, I have been watching your videos for years and I wanted to thank you for sharing your knowledge with the world. You are patient, intelligent and care about your students

    • @WiseOwlTutorials
      @WiseOwlTutorials  2 ปีที่แล้ว

      @@christiancoronado Thanks so much Christian, it's really nice to hear that! And agreed, it sounds as though Selenium may be the best choice here.

  • @victoropere2107
    @victoropere2107 5 ปีที่แล้ว

    Thank you very much

  • @paspuggie48
    @paspuggie48 5 ปีที่แล้ว

    Now you know my secret Andrew. This is what I mentioned to you in another thread 😉

  • @UzmanExcel
    @UzmanExcel 2 ปีที่แล้ว

    Do you know how to login a website login with xmlhttp?

  • @leandro3825
    @leandro3825 4 ปีที่แล้ว +1

    I watched your fantastic Excel VBA getting data from websites list, I learned too much with.
    I'm trying to pick up data from an website with these methods, but I don't get it. I have examed the website source and I have discovered that the data isn't there. There is a "frame" link with extension "*.asp", so I put the frame link in process, but don't work.
    The links are:
    www.b3.com.br/en_us/market-data-and-indices/data-services/market-data/reports/derivatives-market/open-interest/maturity-series/open-interest-futures/
    and
    www2.bmf.com.br/pages/portal/bmfbovespa/lumis/lum-posicoes-em-aberto-futuro-enUS.asp

  • @Ahmed7255
    @Ahmed7255 2 ปีที่แล้ว

    can this method work with facebook?

    • @WiseOwlTutorials
      @WiseOwlTutorials  2 ปีที่แล้ว

      Hi! No, facebook doesn't use the type of credentials shown in this video.

    • @Ahmed7255
      @Ahmed7255 2 ปีที่แล้ว

      @@WiseOwlTutorials how i can i make soemthing similar for facebook? thanks

    • @WiseOwlTutorials
      @WiseOwlTutorials  2 ปีที่แล้ว

      @@Ahmed7255 I don't know, sorry. You can probably interact with the username and password elements on the login page using the techniques described in some of our other videos in the Getting Data from Websites playlist.