How to Login into Website Automatically Using VBA

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ก.ย. 2024
  • Alex wants to automate the process of logging into a website automatically using Excel VBA. He has the username and password for the website.
    Our video demonstrates how you can login automatically into a website like Gmail using Excel VBA:
    1. Go to the Gmail website
    2. View its source code to find out the labels used for the username and password
    3. Start the Visual Basic Editor in MS Excel
    4. Activate the following two items by clicking on Tools and then 'References...':
    •Microsoft Internet Controls
    •Microsoft HTML Object Liabrary
    5. Next define two public variables
    6. Now start writing the macro
    7. Using a looping process access the username and password text-boxes automatically for entry of the relevant data
    8. Then identify the 'submit' button, click on it and exit the for loop
    9. To avoid error messages popping up write a few lines of code to ignore the errors
    You'll notice that the VBA code works well.
    You can access the VBA code here:
    www.exceltrain...
    For more knowledge read the book Excel 2016 Power Programming with VBA: amzn.to/2kDP35V
    If you are from India you can get this book here: amzn.to/2jzJGqU

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

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

    The code is very good. I think other people who has not understood the code need to go through HTML basic concepts like label properties, Button Properties also basic of connection between two applications. If we did some modification as per our requirement this code may works. Best of Luck.

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

    Thank you so much for your informative videos. Your explanations are clear and the topics are useful. Moments after inputting the code and customizing it for my needs, it was functioning perfectly.

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

    Amazing and informative video sir. It was very helpful.

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

      Thanks for the feedback - motivates me to create more useful videos.

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

    Exactly what I'm looking for. Thank you for explaining this quite simply.

  • @loganthouvenell5105
    @loganthouvenell5105 7 ปีที่แล้ว

    This is a great video and so easy to understand. The issue I have with trying to open a Web page is it says something about cookies which would be because the site is already saved to auto login when I go since I'm using a domain login all passwords for my sites that I need are stored so I don't have to enter them but if I program the macro to go to the site it gives an error about cookies

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

    Thanks for the detailed explanation, very good video. What if i want to use google chrome as a browser? how do you set up the code for google chrome? can you help me?
    Thanks in advacne

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

    Dear Takyar Sir,
    Thanks for providing excellent tutorial for excel.
    I need tutorial for how to import login website (URL) data in to Excel, please do the needful.
    Many thanks
    Shathik

  • @luizbocchese
    @luizbocchese 7 ปีที่แล้ว

    HELLO!!!
    Man! You save my life!!!
    Thank you for this simple but powerful tip!!!

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

    Hi Dinesh, I had set up your code to my inputs, how ever the vba code still needs to have the section "End IF" complete right? I mean for one row above the last one. By the time I hit run the vba doesn't do anything. Im assume its because still needs to be completed the condition End if; Am I right?Thanks again

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

    thank you very much for all your all excellent vba videos, one question I having a problem when i see the page source to find the boxes name to log in don't have id= like is hidden how to find the box names to input user/password in the boxes when id are not visible. thanks again for all your help Sr.

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

      Can you copy and paste the source code here in the comments?

  • @jbcaneda3946
    @jbcaneda3946 11 ปีที่แล้ว

    Hi Mr. Takyar I learn a lot on how you able to simplify your tutorials. Im just curious what if i want to open multiple tabs in one internet explorer with different sites? Example like first tab is gmail, 2nd tab is yahoo.com, 3rd tab facebook, 4th tab myspace. thanks a lot! Keep on uploading more video.

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

    Great Sir, Dinesh sir very simple you doing this code

  • @brijitpunithashajahan1492
    @brijitpunithashajahan1492 9 ปีที่แล้ว

    This is really helpful for VBA developers. Thanks a lot!!!! I have small question about this. Can we get a inbox count using VBA? It would be great if you assist me.

  • @RajnishDubey1988
    @RajnishDubey1988 9 ปีที่แล้ว

    Very nic Sir. I will try this today . IF any error will get back here again.

  • @ruben305rosado
    @ruben305rosado 8 ปีที่แล้ว

    The code was exactly what I needed. Thank you so much!!!

  • @ashmid85
    @ashmid85 8 ปีที่แล้ว

    Hi i would like to know how to use vba macro to input text and click OK in a input box in excel which will be used to unprotect all worksheets in the workbook. The current sendkeys codes are not inputting the password into the input box

  • @UnresolvedStrings
    @UnresolvedStrings 10 ปีที่แล้ว

    Hi Sir, I want to know about Microsoft internet controls. Why it is necessary to be enabled from references. Please suggest. Thank you.

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

    Sir,
    I want to collect data from a password protected site to excel. Can you help me sir?

  • @vipul007007
    @vipul007007 9 ปีที่แล้ว

    thanks !! is it possible to connect excel sheet (dates)
    with your calendar as an event?

  • @ranjanaverma4819
    @ranjanaverma4819 7 ปีที่แล้ว

    Hi Sir Thanks for creating such a useful micros to make things easier. i am trying to do automate but unfortunately it's not working properly so I need your help to resolve issue. it's working perfectly but till the ID password after that it's not auto login I need to click manually and am also not able to find source codes label for ID & Password. if you need portal name I can give you that as well. Please help me I really appreciate your help.Thanks

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

    Thanks it's working awesom, similarly can we copy data to sheet from website by selecting some drop down options in website.

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

      This VBA tutorial will help: www.exceltrainingvideos.com/tag/scraping-web-page-data-of-drop-down-list-options-with-vba/

  • @sonusingz
    @sonusingz 7 ปีที่แล้ว

    Hello Sir,
    How do I clear the existing data present under Email address box and enter new data .
    For example, I'm working on Automating and raising a Ticket and I've saved a Quick link for that. The quicklink for that ticketing website isn't being saved unless I enter some text in it. So, I wrote "test" under description section of the Ticket.
    I'm trying to pull the data from Excel Cells, and pasting it under description. But the text isnt being pasted under description section and it says test even after macro is run successfully.
    I've inspected the element and I'm looking at correct section.

  • @sonikavasanth1958
    @sonikavasanth1958 7 ปีที่แล้ว

    Hello Dinesh Sir,
    Im following your tutorials and understood lot of things for a beginner like me. My Job is automating the process to generate reports to excel. I understand HTML Code but I dont have enough knowledge about microsoft access - experience . Do you recommend any books to start learning which which help me to understand or any courses to choose from. Any help is highly appreciated thanks.

  • @amitbodhwani9119
    @amitbodhwani9119 7 ปีที่แล้ว

    Hi Sir,
    Thank you for your quick reply it solved my issue now i am able to click it also i need one more help is there any way to upload excel file from our local disk to webpage i am able to do it using Java-Selenium but i am not sure how to do it using VBA.
    Thanks

  • @146venu
    @146venu 8 ปีที่แล้ว

    Please explain how to fetch the data(gmail id and password) directly from excel only

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

    Can this work for chrome and edge?

  • @cnealefx
    @cnealefx 9 ปีที่แล้ว

    thanks for showing this effective code. can you recommend a good source of education on the internet to learn about identifying labels so that I can apply this code to other login websites apart from Gmail?

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

    thank you sir...twas a grate tutorial for me..

  • @virgoacc
    @virgoacc 10 ปีที่แล้ว

    Hello Sir,
    Thanks for the knowledge you are providing. I am continuously in touch with your videos and use it to learn and implement in the tasks, however, since few days I am having an issue
    using this code I am able to open website for gmail.
    However I was trying for one of my official website and for entering the credentials , another small window pop up comes "window security" and in that it asks for login details.
    The script stops at that point.
    Is there any way we could automate that I mean login details are added in that new pop up?
    Thanks for the knowledge

  • @JapinJayaprakash
    @JapinJayaprakash 11 ปีที่แล้ว

    code work perfectly Brilliant work sir !

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

    This was very useful, thank you!

  • @TheSivasanth
    @TheSivasanth 6 ปีที่แล้ว

    Thank you for your session ... It really helps. Could you please tell me how to perform the same with Google Chrome

    • @Exceltrainingvideos
      @Exceltrainingvideos  6 ปีที่แล้ว

      Check out this link: www.exceltrainingvideos.com/send-email-using-gmail-with-excel-vba/
      Please note that websites keep on changing their code. You'll have to take appropriate action.

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

    Dear Dinesh, thank you for the insight into this gmail login. I have one query, once I have logged into gmail, is there a way I can extract email subjects onto an excel.

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

      Good question. Will have to work on it.

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

      @@Exceltrainingvideos Thank you Dinesh

  • @NathanielTyler
    @NathanielTyler 9 ปีที่แล้ว

    Can you do a tutorial on making PDFs in Adobe Acrobat pro while using vba to create a navigational bookmark pane for pdf about to be generated? Furthermore can you explain nodes and the objects necessary to preform this task?

  • @mglej3245
    @mglej3245 8 ปีที่แล้ว

    Holy Smokes Din Your amazing I learned so much. I tried with google and they changed a few things. First you have to click login now, to fix that I just Used the Web address for the Login page. Next it only asks for your Email first then once you enter it, then it asks for your password. I just simply copied your loop twice and made the first loop for email then second loop for Password.

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

      +Matthew Mglej can you please share me that updated code. Thank you

    • @mglej3245
      @mglej3245 8 ปีที่แล้ว

      +Maheswaran K
      Dim HTMLDoc As HTMLDocument
      Dim MyBrowser As InternetExplorer
      Sub MyGmail()
      Dim MyHTML_Element As IHTMLElement
      Dim MyURL As String
      On Error GoTo Err_Clear
      MyURL = "accounts.google.com/ServiceLogin?service=mail&continue=mail.google.com/mail/#identifier"
      Set MyBrowser = New InternetExplorer
      MyBrowser.Silent = True
      MyBrowser.navigate MyURL
      MyBrowser.Visible = True
      Do
      Loop Until MyBrowser.readyState = READYSTATE_COMPLETE
      Set HTMLDoc = MyBrowser.document
      HTMLDoc.all.Email.Value = "EMAIL HERE" 'Enter your email id here
      For Each MyHTML_Element In HTMLDoc.getElementsByTagName("input")
      If MyHTML_Element.Type = "submit" Then MyHTML_Element.Click: Exit For
      Next
      Do
      Loop Until MyBrowser.readyState = READYSTATE_COMPLETE
      Set HTMLDoc = MyBrowser.document
      HTMLDoc.all.passwd.Value = "PASSWORD HERE" 'Enter your password here
      For Each MyHTML_Element In HTMLDoc.getElementsByTagName("input")
      If MyHTML_Element.Type = "submit" Then MyHTML_Element.Click: Exit For
      Next
      Err_Clear:
      If Err 0 Then
      Err.Clear
      Resume Next
      End If
      End Sub

    • @maddymagesh25
      @maddymagesh25 8 ปีที่แล้ว

      +Matthew Mglej Thank you. It is working when I break the lines and run the code. If I directly click the run button it is throwing a Run time error: 438 in the below line.
      HTMLDoc.all.passwd.Value = "PASSWORD HERE" 'Enter your password here

  • @oneundecided
    @oneundecided 6 ปีที่แล้ว

    Hello Dinesh, I would really appreciate if you can answer my question. How can I transfer your script from Excel VBA to a VBScript Script File (.vbs) and make it functional? Thank you!

  • @joetest1609
    @joetest1609 8 ปีที่แล้ว

    This is a very thorough and useful tutorial. Although I have made a modest attempt to understand some of these methods, I'm afraid the new gmail format that prompts you to enter a username in one screen, click "next", then enter the password in the next page, then click submit (preferably with the "stay signed in" input box unchecked) does not seem to work with this code.Any update or guidance is appreciated.

    • @Exceltrainingvideos
      @Exceltrainingvideos  8 ปีที่แล้ว

      +Joe Test This time you'll have to log-in step by step. The coding remains almost the same!

    • @manthena143
      @manthena143 8 ปีที่แล้ว

      Could you please provide the code to login as ealier code not working properly

  • @hariprasathgunasekaran4032
    @hariprasathgunasekaran4032 11 ปีที่แล้ว

    Hi, can you show an example on how to close the alert box automatically(the alert box gives a message and it will have "OK" button), so that the webpage will continue to load completely.
    Thank you

  • @EL34XYZ
    @EL34XYZ 8 ปีที่แล้ว

    Hi Dinesh. Thank you for your great tutorial. The web page I am trying to log into has this for the email login.
    Email Address (required)
    Every time I try and change your code to "login-email", it changes automatically to this.
    HTMLDoc.all.login -Email.Value =
    Notice the space after the word login and a capital E on the word email
    How come I cannot change the code to "login-email"
    Thanks for your help

  • @heckypecky306
    @heckypecky306 9 ปีที่แล้ว

    Hi Mr. Takyar. I'm trying to get this kind of automation to work in a secured environment (company network), but I'm keep on getting errors like, vba unable to recognize ReadyState, I hope you can help me with this. Thank you.

  • @VarshanMP
    @VarshanMP 8 ปีที่แล้ว

    Hi Thank you for the valuable video. Can you please explain how to do this same activity in google chrome or firefox?

    • @Exceltrainingvideos
      @Exceltrainingvideos  8 ปีที่แล้ว

      This link might help: www.exceltrainingvideos.com/3-excel-vba-training-questions-on-youtube/
      Or do a search here: www.exceltrainingvideos.com

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

    Gladly subscribed.

  • @amanchaurasia101
    @amanchaurasia101 10 ปีที่แล้ว

    Hi Mr, Takyar,
    Thanks for sharing the idea. However, since IE and Excel are MS supported application, they work pretty well.
    I tried to use "Google Chrome" instead of IE and getting lots of errors. Any ideas as to what I should look for since the application is Chrome. May be selenium?

  • @KHUBAASINGOFFICIAL
    @KHUBAASINGOFFICIAL 6 ปีที่แล้ว

    This not working in present gmail login, only opening gmail login stopped

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

    Thanks for the reference video, kindly suggest as how to capture error if it shows email address is not valid
    ..and store in excel as "error"... Next to email address

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

      Use an IF condition.

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

      Thanks but am not a programmer but will try to find more

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

      This link will guide: www.exceltrainingvideos.com/how-to-capture-user-input-via-input-box-and-validate-the-data-input-using-excel-vba/

  • @AamirShaikh88
    @AamirShaikh88 9 ปีที่แล้ว

    can you add timer to it ? i need to login a website every 11 hrs...
    means ones i run the file(code) it should run untill i power off my pc.. like a loop..

  • @rameshlakavat
    @rameshlakavat 10 ปีที่แล้ว

    Sir,
    This is brilliant.
    Just as an extension to the asked question by Alex, along with login into the website I also need to select FROM and TO dates available in the website and export the retrieved data into an excel file.
    Is this possible using VBA code.
    Appreciate your help :)
    Warm regards,
    Ramesh

  • @pancux670
    @pancux670 6 ปีที่แล้ว

    Nice explanation Sir.
    Can we also login websites asking for captcha through this type of excel macro?

  • @hoornzwaagzonnepanelenwest2403
    @hoornzwaagzonnepanelenwest2403 6 ปีที่แล้ว

    Hi Thank you very much for you tutoriol

  • @praveen98k
    @praveen98k 10 ปีที่แล้ว

    HI..code is not working for me it throwing the error while executing and share the steps to excute using command prompt

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

    Great video, but in my case a new web page loads when click on submit, and here im not able to select the active web page element ID to fill the data from excel sheet, kindly suggest.

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

      This link could be useful: www.exceltrainingvideos.com/tag/extract-data-from-web-pages-using-data-miner-chrome-extension/
      Or search www.exceltrainingvideos.com

  • @jobypulivelil
    @jobypulivelil 7 ปีที่แล้ว

    how to create an automated script that would auto login to a particular application with a specific user name and password? Can you help me to create those?

  • @evansteiko7018
    @evansteiko7018 10 ปีที่แล้ว

    Sir, thanks for your tutorial but one more thing i also need to be accomplished.
    After the logged in I want the vba code to also import contacts from the excel sheet to the gmail account using vba code

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

    this will just make my app number1 thank you sir
    but however my case is not logging into email its another website

  • @avinashmishr2412
    @avinashmishr2412 7 ปีที่แล้ว

    How can I login Window application and pull data daily basis using VBA. Please guide us.

  • @mr.n
    @mr.n 7 ปีที่แล้ว

    I need code the same way but for a program

  • @superoriginalname
    @superoriginalname 6 ปีที่แล้ว

    Hi Dr. Takyar, could you please do an update for the new Gmail interface. One of the issues with this version is that Gmail now has a new button to click between username and password. It's quite difficult to get VBA to click the "Next" button, I've been stuck at this stage for quite some time, could you please let us know how to do this?

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

    sir i want to log in to gst portel, can you please help me out

  • @jangamdevender
    @jangamdevender 7 ปีที่แล้ว

    HI sir, I am very much thank full for such video. Thru you i came to know how to write VBA code in Excel. Can I get any solution to fill autofill CAPTCHA or pull down the captcha without typing.

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

    Hi dinesh hope you are well.
    I work for insurance and we use about 10 different websites.
    My issue is that because of data protection we have to reset passwords on a monthly basis.
    Is there a way for the code to obtain user name and password from the excel spreadsheet instead of predefining?
    Also can the code then be saved as a hyperlink so I can access relevant portals as and when required?
    Many thanks in advance for your response

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

      These links will guide:
      www.exceltrainingvideos.com/compare-userform-data-with-worksheet-data/
      www.exceltrainingvideos.com/how-to-login-automatically-into-website-using-excel-vba/
      Or search www.exceltrainingvideos.com

  • @mustafabakkal8551
    @mustafabakkal8551 8 ปีที่แล้ว

    mr. dinesh somesite has javascript code how to loging website which has javascrip. thx for your kindly reply

  • @amitbodhwani9119
    @amitbodhwani9119 7 ปีที่แล้ว

    Hi Sir,
    I have a button called UpLoad on my webpage which ask to upload the .csv file.
    I am able to click that button using VBA code and after clicking that button on webpage a popup appears similar to open dialog box which ask to upload a file for example say "Star.csv" but i want to insert the file name called "Star.csv" which is stored in my local directory automatically using VBA without user interaction.
    Any help will be appreciated .
    Thanks!

  • @rv9570
    @rv9570 8 ปีที่แล้ว

    Hi Dinesh Kumar Takyar,
    i watched your video and found very useful. But in some site there might be blocked submit button, i am putting the html code here , can u please give me vba code to enable the submit button and login to web page easily.

    Log In
    Thanks in Advanced
    Thanks,
    Ravi

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

    Hello,
    Thanks for the amazing video!! Your amazing!

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

    Yes. Really useful. However, in case of captcha to be entered, how to go to the box where captcha is to be entered ?

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

      Why do people use CAPTCHA on their websites?

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

      It is a government website so

  • @gugudukullaiswamy1815
    @gugudukullaiswamy1815 6 ปีที่แล้ว

    Sir, I want to download the files automatically from website.. That to in that website one download button is there in that it want to select "download as CSV" option.. Then the file will download.. So is there any script for this..

  • @Endre111
    @Endre111 6 ปีที่แล้ว

    What can I do if there is no label for the password and login in the source code of the website I would like to log on?

  • @hemanthmaharana
    @hemanthmaharana 7 ปีที่แล้ว

    Hello,
    The code is very good thanks for your amazing video
    I have one query about is it possible we can Automate any website ? like an example placing online Amazon order using VBA macro if yes could you provide any materiel how to do.

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

      Why don't you just try?

    • @hemanthmaharana
      @hemanthmaharana 7 ปีที่แล้ว

      Yeah Dinesh sure i will try, but could you please tell me is this possible :)

  • @arthiravi5519
    @arthiravi5519 7 ปีที่แล้ว

    Hello,
    I try to pass some value is webpage but some value is not mandatory
    if i dont put any value in excel it is taking some buffer value as "UNDEFINED "
    Please help me on this
    Thanks,
    Arthi

  • @chandanroy2570
    @chandanroy2570 6 หลายเดือนก่อน

    Dear sir i chandan roy i also try your best coding code but one issue my vba project not run also show me "USER-DEFINED TYPE NOT DEFINED" so kindly i request you your best hand. Thank you sir.

  • @beesath5405
    @beesath5405 10 ปีที่แล้ว

    Sir, I am a commerce student
    i want to know whether special Excel with VB has to be purchased or VB inbuilt in normal excel sheet
    Developer tool not available in normal excel
    plz help me out in this regard

    • @Exceltrainingvideos
      @Exceltrainingvideos  10 ปีที่แล้ว

      Excel VBA comes free with MS Excel.
      www.exceltrainingvideos.com/how-to-display-developer-tab-in-microsoft-excel-2010/

  • @luciasking-moore584
    @luciasking-moore584 2 ปีที่แล้ว

    Thanks Dinesh

  • @posterdotcom4176
    @posterdotcom4176 6 หลายเดือนก่อน

    im sorry but the code link is not working... can you re-post the code please? thank you

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

    Hi Dinesh Ji, Pls suggest how to resolve excel power query permission error issue in NSE option chain due to cookies changes automatically in every 2-3 seconds.

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

    How can print multiple tabs print to PDF in internet browser by VBA excel
    Please help me

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

      This link will help: www.exceltrainingvideos.com/automate-excel-to-pdf-and-email-pdf-document-using-vba/
      You can also search www.exceltrainingvideos.com

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

    What if I need to login multiple times suppose I have a huge excel data which needs to do same operation please guide us it will be much more helpful😊

  • @princejain9220
    @princejain9220 8 ปีที่แล้ว

    Hello Dines,
    I am trying to automate a bank site using excel VBA macro in my project environment.
    But facing this issue" The object has disconnected from its client"
    I google out for solution. I got to know that its due to security or zone related issue in project environment. So I tried to change security tab in internet option . But not able to change because i do not have admin rights to do this.
    I have also tried used below three types of liens to create IE object. But not able to resolve this issue.
    Set IE = New InternetExplorerMedium
    Set IE = New InternetExplorer
    Set IE = CreateObject("InternetExplorer.Application")
    Please guide me to solve this issue.

  • @PRIMANOPTE
    @PRIMANOPTE 8 ปีที่แล้ว

    Great Video! Thanks A lot for the info!

  • @vivekkashyap7732
    @vivekkashyap7732 7 ปีที่แล้ว

    I have a situation, I am working on a data entry automation in a website.. it works fine till I login and go to a required link.. here I click on an icon and another small window opens (not another instance of IE or tab, just within) where I have to fill some information and click submit.. I am not being able to control this small window.. it says object not found, please help

    • @Exceltrainingvideos
      @Exceltrainingvideos  7 ปีที่แล้ว

      Did you study the HTML code carefully?

    • @vivekkashyap7732
      @vivekkashyap7732 7 ปีที่แล้ว

      Dinesh Kumar Takyar I actually haven't read the HTML code fully.. I just refer to get ids and names for the vba codes

  • @Appydem
    @Appydem 10 ปีที่แล้ว

    In my case, I need to run four separate internet windows with upto three tabs per window and these tabs point to different sites. How can I do this without all my 12 or so tabs opening in one

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

    Hi. can I use Microsoft Edge ?

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

      Even if you are using windows 10 IE fires up automatically. You can use the 'shell' to fire MS Edge like so:
      CreateObject("Shell.Application").ShellExecute "microsoft-edge:www.exceltrainingvideos.com"

  • @GeanVallejos
    @GeanVallejos 10 ปีที่แล้ว

    Excellent. One Question Master. Why say in my application as error:
    "The object invoked has disconnected from its clients."
    Thanks for your help.

    • @Exceltrainingvideos
      @Exceltrainingvideos  10 ปีที่แล้ว

      Study this link carefully: support.microsoft.com/kb/813120

  • @realfake2004
    @realfake2004 11 ปีที่แล้ว

    I keep getting a compile error at the
    Dim HTMLDoc as HTMLDocument
    I have selected the MS Internet Ojects under Tools/Reference
    Any suggestions..

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

    Sir I would like to know whether can we design a macro which will make me to enter a data in online site.

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

      Of course, provided you have the required credentials like username and password.

  • @anitamallya3026
    @anitamallya3026 8 ปีที่แล้ว

    Dinesh, Thank u for all your efforts. I want to give feedback to you and that is nowadays Gmail is not allowing such sign in as it detects automatic (programmatically) attempts to login. Just now I tried this code and it just locked my account and told me to go thru Recovery Process to Log in my Account. So somehow they know that someone is trying to log into Gmail programmatically.
    Now my question to you. How to solve my problem given below. If you know how to do it kindly do tell me (or all your viewers) in this forum. I wrote this following code because I wanted to download NSE's Data.CSV file from their site. In the web page there is fromDate and toDate (Item IDs) and Get Data button (Item Id: "get"). I could successully run the following code and the site showed me an HTML Table and a link "Download file in csv format". But, I don't know what to do to click that link ("Download file in csv format" programmatically as there is no Item ID that can be found even if I tried to see the Source code of that page. So how to accomplish that? That is, programmatically clicking the "Download file in csv format" link that is presented to us below the HTML Table that we get after programmatically clicking on "Get Data" button.
    Here's the code:
    oBrowser=CREATEOBJECT("Internetexplorer.application")
    tcURL="www.nseindia.com/products/content/equities/indices/historical_index_data.htm"
    oBrowser.navigate(tcURL)
    DO WHILE NOT oBrowser.ReadyState=4
    endd
    oBrowser.Visible=.t.
    oBrowser.Document.GetElementbyID("fromDate").value="01-02-2016"
    oBrowser.Document.GetElementbyID("toDate").value="31-03-2016"
    oBrowser.Document.All("get").Click(0)

    • @Exceltrainingvideos
      @Exceltrainingvideos  8 ปีที่แล้ว

      +Anita Mallya I've also indicated this login problem at 3.44 min onwards in the video and therefore done a 'error' handling. This link might help to download the csv file: www.exceltrainingvideos.com/tag/how-to-follow-link-on-web-page-automatically-with-vba/

  • @jaythakur2137
    @jaythakur2137 10 ปีที่แล้ว

    Hi Mr. Takyar,
    Its a nice code written by you, but i was wondering if you can help us to execute this code to "Chrome".
    I mean insist of opening the gmail into the Internet Explorer it should open in "Google Chrome".
    I tried for this but couldn't get the answer , can you please help me on this matter?
    Thanks in advance.

    • @Exceltrainingvideos
      @Exceltrainingvideos  10 ปีที่แล้ว

      jay thakur This link might help:@3-excel-vba-training-questions-on-youtube/

  • @elliotchai
    @elliotchai 9 ปีที่แล้ว

    The website i want to login got validation code to ensure we are human, how to encode to automatically login this kind of website which has 3 step below:
    1. Username
    2. Password
    3. Validation code

  • @amitbodhwani9119
    @amitbodhwani9119 7 ปีที่แล้ว

    Hi Sir,
    There is a text box on my webpage which on clicking will pop up a calendar the properties of that text box is
    I tried clicking that button using IE.document.getelementbyid("datepicker") and IE.document.getelementsbyclassname("hasDatepicker") and also IE.document.getelementsbyname("date") but i failed everytime and i am not able to click text box because of which the calendar on my webpage is not appearing.
    I tried using Selenium Java code and it is working fine with it but i want to code with VBA scripting.
    Please help me with this issue as while running i am not getting any errors also.
    Thank You

    • @Exceltrainingvideos
      @Exceltrainingvideos  7 ปีที่แล้ว

      Try this code:set input_elements=IE.Document.getElementsByTagName ("input")
      For each input_element in input_elements
      If input_element.getAttribute("name")= "date" then
      input_element.Click
      Exit For
      End if
      Next input_element

  • @manoranjan2578
    @manoranjan2578 8 ปีที่แล้ว

    Hi Sir,
    If the User Name and the pass word field is popup, inside the field the user name and password item is engraved. How can I modify this code.
    Please provide reply.
    Thanks in Advance,
    Mano.

  • @Banafsajii
    @Banafsajii 8 ปีที่แล้ว

    Can you please help me how to write aVBA code for any eccomercial website to import specific data like order ID and tracking No. and more criteria from my account, and could I make some data updated automatically depending on its status on the website? i mean like if the status online is shipped and then get delivered so it is updated automatically on exel sheet
    would highly appreciate your reply & thanks in advance

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

      Do a search at www.exceltrainingvideos.com

    • @Banafsajii
      @Banafsajii 8 ปีที่แล้ว

      appreciate your reply :) .. as I'm beginner, I just was wondering if it's possible or just need a specialized and professional guy who can develope .. so if it's possible with some effort and a little reading, so I can go ahead, but if it's complicted I'll just put it off for next time..
      Thanks again & Regards

  • @satish7871
    @satish7871 6 ปีที่แล้ว

    Hello sir please help me..
    I want to use source url as a url for fatch data using vba macro how is possible please help me
    Thanks

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

    Thanks very much bro ! !!!!!!!!!

  • @iamceylon
    @iamceylon 7 ปีที่แล้ว

    Dear Sir Kumar,
    Where do we save this VBA file in the computer please so that I want to log in for about 20 websites automatically and keep me logged in for x amount of hours.
    I appreciate your time and free lectures.
    Thank you
    Chan

    • @Exceltrainingvideos
      @Exceltrainingvideos  7 ปีที่แล้ว

      Watch this video carefully at 00:37 minutes: www.exceltrainingvideos.com/ms-excel-essentials/microsoft-office-button/
      Save your file as a 'macro enabled workbook' in a folder of your choice.

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

    I have an excel file and it data would be added automatically to the online web portal can we do it sir..

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

      www.exceltrainingvideos.com/embed-excel-sheets-in-web-pages/

  • @som9776
    @som9776 6 ปีที่แล้ว

    If website when right click can't see view source what can i do ?

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

    Sir can you help me in making a program which can automatically open any website and click
    on a button to download something

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

      This VBA playlist on web scraping will help: th-cam.com/video/JInLHfr_i5Y/w-d-xo.html
      You can also search my TH-cam channel or website www.exceltrainingvideos.com

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

    Sir.
    Login & password input done but. how to chapacha in put fill

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

    How can I get the code

  • @sanjaysingh-md6cx
    @sanjaysingh-md6cx 7 ปีที่แล้ว

    thanks à lot sir ,
    I request to solve my problem
    I am a trader and I want to create a button in excel which can login to my Zerodha account and also place order according to cell live value of script and execute it

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

    Hello sir
    If we have sha256 encription on client side in password. Then what to do??
    TIA