How to Automate Web Scraping Using Excel Macros

Поделиться
HTML-код
  • Опубликовано: 15 сен 2024

Комментарии • 228

  • @nathanmitchell2827
    @nathanmitchell2827 4 года назад +1

    You are an insanely good teacher with this. I have successfully written the code to transfer hundreds of lines of text from an excel spreadsheet to a secure website. I had to watch a few of your videos to put it all together, for example: I came to this one just to learn how to loop the code, but by combining the parts I need, I have been able to solve a huge logistical problem. I don't have any coding experience, so these are incredibly helpful. The one request I have is making a video that explains how to insert code from excel spreadsheet that continues all the way through to the end of the looping, explaining how to add multiple lines of data from an excel sheet. My biggest challenge was piecing that together, but I know that would mean you do a lot of repetition, so considering what I was able to accomplish, I am just grateful you are posting.

  • @crayonsprimaryschool
    @crayonsprimaryschool 5 лет назад +3

    I was googling for the exact same macro from the last 5 days. tried many gui macro recorders and bookmarklet scripts. nothing was so simple like yours. thanks bro. keep walking.

  • @colinbray2990
    @colinbray2990 2 года назад

    Excellent video tutorial. Will certainly be watching more. Thanks for the very thorough work.

  • @sacredchuck
    @sacredchuck 3 года назад

    I am grateful for your videos! Thank you so much for your clarity and perspective!!

  • @immortal_code
    @immortal_code 2 года назад

    thanks vry much sir, you save my life. Indonesian people

  • @jonathan528
    @jonathan528 5 лет назад +1

    Automation Made Easy makes awesome content and does outstanding work. Full support for his tutorials.

    • @AutomationMadeEasy
      @AutomationMadeEasy  5 лет назад

      Thank you

    • @juniorz289
      @juniorz289 3 года назад

      @@AutomationMadeEasy can you contact me?

    • @AutomationMadeEasy
      @AutomationMadeEasy  3 года назад

      @@juniorz289 Sure. Share contact details

    • @juniorz289
      @juniorz289 3 года назад

      @@AutomationMadeEasy thanks for the quick reply. Please contact me on telegram if possible @URLMONSTA

  •  2 года назад

    Thanks for sharing this video, excellent explanation for beginners. well done. It help me a lot.

  • @Yaqoobalvi
    @Yaqoobalvi 2 года назад

    Thank this is the best tutorial very wholesome but I needed a few tweaks which I ended up spending 5 hours on but in the end all worked out thank you for effort in uploading good content. 👏👏👏

  • @ssadhees6481
    @ssadhees6481 4 года назад

    Thanks for the video - it is really easy to understand and recommended my colleagues to watch all of your videos

  • @jakerusbarsky7023
    @jakerusbarsky7023 3 месяца назад

    You made this video extremely easy to understand, especially to people who do not have a background in code. I was wondering if there is a way to do this if you were to navigate to different web pages? A project I am working on requires me to search a website for 47,000 cells of data and retrieve a line of information. Thanks again for your help!

    • @AutomationMadeEasy
      @AutomationMadeEasy  3 месяца назад

      Similar examples are provided on the blog automationandagile.com in Excel automation section. For you specific requirement I need to see the web page to suggest a solution

  • @gregyohngy
    @gregyohngy 5 месяцев назад

    Looks easy! 😊
    I might get an AI validation Gig. I was thinking of automating it, so I could drink my coffee and not clicking! 👍

  • @religarehealth3439
    @religarehealth3439 3 года назад +3

    Sir excellent, your Video is so meaning full How to Automate Web Scraping Using Excel Macros with Chrome . Please let me know sir with same type if possible.

    • @ZKP-xn2sn
      @ZKP-xn2sn 3 года назад

      I would like to know the same

  • @karthikbalu123
    @karthikbalu123 8 месяцев назад

    Very informative 👍

  • @saqibahmed2053
    @saqibahmed2053 3 года назад

    Very useful and simplified explanation! Keep up the good work

  • @manuela8605
    @manuela8605 4 года назад

    you are a genious. it super worked, i´ve been looking 4 this 4 months!!!

  • @me1sunil1yadav
    @me1sunil1yadav 4 года назад +3

    Suggestion, keep the link to download the practice file. Will save us a lot of typing :P Great tutorials!
    Question: How to fill the text-boxes and dependent drop-downs if the click opens on a new page/frame and has dynamic URL of the new page?

  • @jamshaidzafar5743
    @jamshaidzafar5743 3 года назад

    Very helpful video. Keep up the good work.

  • @soldeal4422
    @soldeal4422 2 года назад

    Very good, thank' a lot, you are the beste

  • @Gaurav.YourDedicatedAssistant
    @Gaurav.YourDedicatedAssistant 2 года назад

    any updated video on this? because internet explorer is not operational anymore, nice video.

  • @CM-oq6ql
    @CM-oq6ql 3 года назад

    Thanks for sharing :) I'm really enjoy your tutorial.

  • @okechukwuumezurike2292
    @okechukwuumezurike2292 2 года назад

    Thanks for this tutorial. I learnt it. But I wanted to try an automation on google but didn't see the id when I inspect it. I tried using class but it was filled with different characters and even space. My question is, in place of id, class and tags which other elements can I use when I am writing "getElementBy..." instruction?

  • @atomkrishna
    @atomkrishna 3 года назад

    Vry well explained sahb

  • @alalston3978
    @alalston3978 2 года назад

    Very clear, excellent!! Where is the link to download the practice code in the video?

    • @AutomationMadeEasy
      @AutomationMadeEasy  2 года назад

      refer about section of the channel. You will find the blog link there

  • @harpreetsinghgrover
    @harpreetsinghgrover 3 года назад

    Hi, this is something amazing. Now you're my only hope, pls suggest how can I use this way to automatically fetch specific cookie information from a webpage, pls pls pls pls pls reply.

  • @gilsonmiranda8372
    @gilsonmiranda8372 5 лет назад +1

    Great video. I have a question. Is there any option in vba to find the parent or child tag for certain tag?

    • @AutomationMadeEasy
      @AutomationMadeEasy  5 лет назад

      yes we can do that but it would be complicated, But by using selenium vba and xpaths the same task becomes very easy. Below is the link to Selenium VBA tutorial. You may refer that and create xpaths using parent, child, siblings etc.
      ruclips.net/video/-GUw22ecRwI/видео.html

  • @prakashchouhan8638
    @prakashchouhan8638 2 года назад

    Sir how to export single data (td) from whole table in excel. please upload a video

  • @bhuvaneshwaranm1282
    @bhuvaneshwaranm1282 3 года назад

    thanks for the video

  • @jine-jing7753
    @jine-jing7753 3 года назад

    Hello you're teaching skill in coding is excellent! Very helpful for me as a beginner in coding. I'm a fan now.
    btw, have tried coding but why is that I'm encountering an error 462? How can I fix that? Thanks!

  • @kylenolen7774
    @kylenolen7774 2 года назад

    I keep getting the error Object Variable or With block variable not set. It seems to be referring to my line where I create the variable equal to what I want to pull from the webpage. Thank you for the awesome video :)!

  • @PRATISHK123
    @PRATISHK123 2 года назад

    Hi sir,
    Nice nice video..just have one query.. introw =2 to 5.
    Instead of setting it fixed can we have it automatically updated as per the data we entered. As it is 30 some time , 50 some times

    • @AutomationMadeEasy
      @AutomationMadeEasy  2 года назад

      yes put formual =CountA(A:A) in any of the unused columns. This will give total rows.
      First read the data from this cell and us it in the loop

  • @kamalkamal0123
    @kamalkamal0123 2 года назад

    this is incredible. thank you so much. How can I get in touch with you ?

  • @christiaangouws5853
    @christiaangouws5853 5 лет назад +1

    The tutorial works great. I have followed a few of your tutorials. Is there a solution to get data from a website if the return is empty?

    • @AutomationMadeEasy
      @AutomationMadeEasy  5 лет назад

      Can you give an example of a web page where you get empty as return value. It would be easier for me too provide you a solution with a live example.

    • @christiaangouws5853
      @christiaangouws5853 5 лет назад

      @@AutomationMadeEasy i am combining 2 of your tutorials. To fill in a web form and this one. It is working perfectly. 3 fields to populate and a clicker. However, there are return 3 data options I can choose from. One is within a text box, the others only by class name. It's a currency conversion form for a project of mine. So one thing is, it will not return as a number, because of the "." and "," differences. When it runs, i get blank. If i set the object to long it only displays 0,00

    • @christiaangouws5853
      @christiaangouws5853 5 лет назад

      @@AutomationMadeEasy can you give me your email address and I can provide you with a link?

    • @AutomationMadeEasy
      @AutomationMadeEasy  5 лет назад

      You can find it in the 'About' section of the Channel page

  • @venkatesh.r7857
    @venkatesh.r7857 Год назад

    Is there any macro support edge browser in web automate.

  • @ichitti1434
    @ichitti1434 2 года назад

    Nice Tutorial brother! 👍
    Its working fine with some other website.
    But when I open our specific site it throws the error saying:
    Run-time error -2147417848 (80010108) Automation error.
    The object invoked has disconnected from its clients.
    I would be thankful if any solution Comes out.

  • @PrakashManokumpuzha
    @PrakashManokumpuzha 2 года назад

    super

  • @habibullah0
    @habibullah0 4 года назад +2

    Hi sir, thanks for your tutorial it helped a lot, just have one question, you used introw = 2 to 5, is there any way to set the range to cell which has the final data? because I get a range of data for example 50 and some times 70. I just want to know whether I have to set the range every time manually or is there any way where I can set the data till the last row (Where data exists)..Your help is much appreciated!

    • @AutomationMadeEasy
      @AutomationMadeEasy  4 года назад

      Replace For loop by while loop. Syntax given below:
      Assume column A as the reference,
      intRow = 2
      strData = ThisWorkBook.Sheets("Data").Range("A" & intRow).Text
      while (Trim(strData "")
      '-----Put the code here
      strData = ThisWorkBook.Sheets("Data").Range("A" & intRow).Text
      Wend

    • @habibullah0
      @habibullah0 4 года назад

      @@AutomationMadeEasy Thanks for your reply sir, actually, I'm new to VBA and landed here following your previous video "How to Automate Data Entry in a web form using excel macros", I'm just learning to do loop after automating the data entry from excel sheet. Everything works perfectly fine as per your guidance, it's just don't I want to fix the data range for eg (For intRow = 2 to 5)
      I want to continue looping this the till cell where the last data exists and close the IE browser. Will the code you have given above fit in it?
      Thanks in advance!

    • @AutomationMadeEasy
      @AutomationMadeEasy  4 года назад

      share ur code

    • @habibullah0
      @habibullah0 4 года назад

      @@AutomationMadeEasy Here you go Sub Fill_Form()


      Set IE = CreateObject("InternetExplorer.Application")
      IE.Visible = True
      intRow = 2

      IE.Navigate "www.XYZ.com"

      Do While IE.Busy
      Application.Wait DateAdd("s", 1, Now)
      Loop

      Set AllHyperLinks = IE.document.getElementsByTagName("a")

      For Each hyper_link In AllHyperLinks

      If hyper_link.innerText = "XYZ" Then

      hyper_link.Click

      Exit For

      End If

      Next

      Do While IE.Busy
      Application.Wait DateAdd("s", 1, Now)
      Loop


      IE.document.getElementById("XYZ").Value = ThisWorkbook.Sheets("XYZ").Range("A" & intRow).Value
      IE.document.getElementById("XYZ").Click

      Application.Wait Now + TimeSerial(0, 0, 2) '

    • @AutomationMadeEasy
      @AutomationMadeEasy  4 года назад

      Sub Fill_Form()
      Set IE = CreateObject("InternetExplorer.Application")
      IE.Visible = True
      ThisWorkbook.Sheets("Sheet1").Range("DZ1").Value = "=CountA(A:A)"
      intTotalRows = ThisWorkbook.Sheets("XYZ").Range("DZ1").Value
      For intRow = 2 To intTotalRows
      IE.Navigate "www.XYZ.com"
      Do While IE.Busy
      Application.Wait DateAdd("s", 1, Now)
      Loop
      Set AllHyperLinks = IE.document.getElementsByTagName("a")
      For Each hyper_link In AllHyperLinks
      If hyper_link.innerText = "XYZ" Then
      hyper_link.Click
      Exit For
      End If
      Next
      Do While IE.Busy
      Application.Wait DateAdd("s", 1, Now)
      Loop
      IE.document.getElementById("XYZ").Value = ThisWorkbook.Sheets("XYZ").Range("A" & intRow).Value
      IE.document.getElementById("XYZ").Click
      Application.Wait Now + TimeSerial(0, 0, 2) '

  • @dharmendrasinghchauhan2325
    @dharmendrasinghchauhan2325 2 года назад

    Hi
    Can u plz tell me what code will be for wait untill page lode for Chrome browser
    Plz tell me

  • @Chris-ft4cq
    @Chris-ft4cq 5 лет назад

    hey i have a small question. love your guide btw! I wanna do it like this: run macro, open IE, fill in form on the page from row 1 in excel, send, close IE, open IE, fill in form on the page from row 2 in excel,, send, close, open etc. How do i loop IE to close and open and remember the row it has to fill?

    • @AutomationMadeEasy
      @AutomationMadeEasy  5 лет назад

      Thanks. Try with below code snippet:
      For intRow = 2 to 10 '------ur total rows
      Set IE = CreateObject("InternetExplorer.Application")
      IE.Visible = Trur
      IE.navigate "your url"
      Application.Wait DateAdd("s", 4, Now)
      Set doc = IE.document
      '--- Put your code in the next few lines
      IE.Quit
      Next

  • @modameradmar
    @modameradmar 4 года назад

    I Follow alot of your vides and I learn alot you so good in Teaching
    I'm not sure how I can ask your help as you dont have facebook or twitter ...etc so I will ask you hear
    when I full the feild using the script below it will stay like no witen in it even it shows writen and there is the botten should activet after the feild have some text
    objIE.document.getElementById("post-title-0").Value = _
    Sheets("Data").Range("A" & intRow).Value
    ()
    The botten not activeted
    'click the 'Draft' button
    objIE.document.getElementByshortcut("Ctrl+S").Click
    (Save Draft)
    I use shortcut to find it but cant becz of the first feild.
    please contact me on my email if you know how to fix it (email: hisjios@gmail.com ) thank you so much

  • @Dave-tg1pu
    @Dave-tg1pu 5 лет назад

    Thank you for the demonstration. I use Macbooks and the Safari browser with Excel for Mac. What would the command to call the safari browser be?

    • @AutomationMadeEasy
      @AutomationMadeEasy  5 лет назад

      Sorry i have never worked on macbooks so I comment, but below tutorial would serve your purpose irrespective of the operating system.
      ruclips.net/video/iIhEyrYfqbA/видео.html

  • @pfarr6369
    @pfarr6369 2 года назад

    This video is awesome thank you so much. Just one question. How about if we have a webpage to enter 10 rows of data each time and the click on register and then another 10 entries from our remaining excel file until it is completed?

    • @AutomationMadeEasy
      @AutomationMadeEasy  2 года назад +1

      well it can be achieved but if the structure of your excel file is different I will need to look into it to suggest a solution

    • @pfarr6369
      @pfarr6369 2 года назад

      @@AutomationMadeEasy Could i send you an email please?

    • @AutomationMadeEasy
      @AutomationMadeEasy  2 года назад

      @@pfarr6369 info@automationandagile.com

    • @AutomationMadeEasy
      @AutomationMadeEasy  2 года назад

      sure contact info is provided in the about section of the channel

  • @windriver456
    @windriver456 2 года назад

    Hi, this was really helpful. Thank you for creating the video.
    I am following your instructions to fill out a form on a site, where the inspect option on the Submit Request button shows me the following info: input type="submit" value="Submit request"
    I tried several dozen combinations of your "doc.getElementById("btnCalculate").Click" code, and I cannot get the macro to click the submit button. Do you have any suggestions?
    Thanks in advance.

    • @AutomationMadeEasy
      @AutomationMadeEasy  2 года назад

      Try alternate approach explained below:
      ruclips.net/video/AEp0Yeis9AM/видео.html

  • @MrAtaristic
    @MrAtaristic 3 года назад

    An excellent tutorial

  • @ANNUETAWAHCRPF
    @ANNUETAWAHCRPF 4 года назад

    Sir you are great

  • @Palwinder_SIngh_sandhu
    @Palwinder_SIngh_sandhu Год назад

    Thanks

  • @jeevant3406
    @jeevant3406 4 года назад

    Thanks a lot
    It really really helped

  • @hennalessons2887
    @hennalessons2887 5 лет назад

    wow just love your videos keep posting more i want to learn excel vba from scratch

    • @AutomationMadeEasy
      @AutomationMadeEasy  5 лет назад

      Thanks. Below is the link of my latest tutorial:
      ruclips.net/video/7a8IofqBNo4/видео.html

  • @colinbray2990
    @colinbray2990 2 года назад

    I am using Excel 2019 for Mac and in Available References, I do not find Microsoft Internet Controls or Microsoft HTML Object Library. Any idea how to add them? Many thanks.

  • @jkhdfkjashdfk
    @jkhdfkjashdfk 2 года назад

    My references do no include Microsoft Internet Controls or Microsoft HTML Object library. Is it because I am using Excel on a Mac?

  • @saidivya1580
    @saidivya1580 2 года назад

    Thanks for the code.. But I am getting compilation error User- defined type not defined.. can u help me how to solve it

  • @kannannable
    @kannannable 4 года назад

    Hi, thanks for the wonderful video. I have a doubt. How can use the text box, if the ID was not provided on the actual code? Because I can find only Name, type, no ID in the code?

    • @AutomationMadeEasy
      @AutomationMadeEasy  4 года назад +1

      Refer belw tutorial:
      ruclips.net/video/Qknt8qFR7kY/видео.html

    • @kannannable
      @kannannable 4 года назад

      @@AutomationMadeEasy Thanks a lot bro.. That ll really helps. I'll try this Tmrw and let you know.

  • @tomrexon
    @tomrexon 4 года назад

    Hi, I’m new to VBA and your video is so clear, however, I have a doubt, how about the code to fetching data with 1 text box in the website. Please assist.

    • @AutomationMadeEasy
      @AutomationMadeEasy  4 года назад

      refer below tutorial:
      ruclips.net/video/docnLSdj8rI/видео.html

  • @listenergy
    @listenergy 3 года назад

    how to do this in loop.
    like up to 10 browser tab?
    thanks!

  • @shirshakkandel10
    @shirshakkandel10 4 года назад

    How to make each row data run in seperate tab of same Browser

  • @dharmendrasinghchauhan2325
    @dharmendrasinghchauhan2325 4 года назад

    Hi
    Plz help for
    Waiting time until page load for chrome
    This code is not working
    And thank u very much with your help I have completed my one poject

  • @dineshlataye7007
    @dineshlataye7007 2 года назад

    if input given, but webpage asking enter TAB. what is the code for this situatation

  • @userx460
    @userx460 4 года назад

    How can I automatically update the excel sheet data after updating the same data in website

  • @ajays6818
    @ajays6818 4 года назад

    Thank you for the detailed explanation! Still I have a Question
    we used introw for number of row the macro should search in Web it was restricted to number of row entered in macro like 5 in this video, any thing entered in 6th row will not get the answer
    So if i put introw as 50 rows and i need answer for only for 10 still the macro will run for 50
    is there any option to put number of row macro should run should be number of rows entered in excel and macro stops after that.

    • @AutomationMadeEasy
      @AutomationMadeEasy  4 года назад +1

      You can use excel formulae to get the total row count. Example given below:
      ThisWorkBook.Sheets("SheetName").Range("AZ1").Value = "=CountA(A:A)"
      intRows = ThisWorkBook.Sheets("SheetName").Range("AZ1").Value
      variable intRows will have total row count.

    • @VipinKumar-dz2jn
      @VipinKumar-dz2jn 4 года назад

      @@AutomationMadeEasy what is the definition here of range ("az1).value
      Please explain

    • @AutomationMadeEasy
      @AutomationMadeEasy  4 года назад

      'AZ' is referring to column header. If you scroll to the right on the sheet you will see column AZ. You can use any column of your choice. And 1 is referring to the first row. So in the first row of column AZ I am stroing count of rows.

  • @prathamambre4769
    @prathamambre4769 3 года назад

    Really helpful ..Can I get conversion rates (USD - EUR) from Oanda.com altering the same code?

  • @am3dz
    @am3dz 5 лет назад

    can you suggest me any course or book i should get through to learn or anyway i can professionally use excel with vba in my career.

    • @AutomationMadeEasy
      @AutomationMadeEasy  5 лет назад

      I can take an online course. You can find my contact details in the 'About' section of this channel.

  • @alphaumi1031
    @alphaumi1031 4 года назад

    I have used Selenium Library, and google chrome to open url instead of IE. How can I get Text same class by loop function, I tried this code “For intRow 2 To 4 (“hit Enter to next line”) strName = obj.FindElementByClass(“class-name”).(intRow).Text” but it’s not work!

    • @AutomationMadeEasy
      @AutomationMadeEasy  4 года назад

      (obj.FindElementByXpath(//*[@class-'classname']))[0].text

  • @rohanmehta1388
    @rohanmehta1388 3 года назад

    I have a doubt.
    I want to perform certain steps after login in. But I need to enter captcha for logging in.
    So how do I program the script to start running again once login button is clicked

    • @AutomationMadeEasy
      @AutomationMadeEasy  3 года назад

      Put a message box where captcha is expected. The execution will pause when messages box will be displayed. Manually enter captcha at this point. Once done clik on the message box. Execution will continue from that point. Synatx for message box given below:
      MsgBox "Wait"

  • @aakashkarmakar683
    @aakashkarmakar683 5 лет назад

    Hi this was video is awesome. Thanks for such a nice explanation. I applied to some website and it worked successfully where class name was constant. I was thinking if you could help me to do the same in a webpage where class name is dynamic and changes with each input.

    • @AutomationMadeEasy
      @AutomationMadeEasy  5 лет назад

      Yes thats possible, need to see how the page is designed.

    • @aakashkarmakar683
      @aakashkarmakar683 5 лет назад

      @@AutomationMadeEasy Actually that's a page where we input something and then a status comes up. Now the whose result is in the form of a table. So is table scrapping possible.

    • @AutomationMadeEasy
      @AutomationMadeEasy  5 лет назад +1

      yes its very much possible.

    • @aakashkarmakar683
      @aakashkarmakar683 5 лет назад

      @@AutomationMadeEasy Can you please demonstrate that through a video. Thank you .

    • @AutomationMadeEasy
      @AutomationMadeEasy  5 лет назад

      noted

  • @Pritam5016
    @Pritam5016 5 лет назад

    Hi, I have a confusion ...While u r using Do while ..... Why 4 used.. especially Not equal 4... Please elaborate use of especially 4. Thanks advance.

    • @AutomationMadeEasy
      @AutomationMadeEasy  5 лет назад

      4 indicates browser is loaded correctly. So we wait unil browser gets loaded successfully else subsequent steps will fail.

  • @justinandlydiakroeger9441
    @justinandlydiakroeger9441 3 года назад

    Great video, thank you so much! This is my first time trying any sort of script writing and I am running into an error on the first getElementById line after "For intRow = ____". If I set the value to equal a hard-code number, it inputs the number successfully in the field on the website I'm getting data from. But when I set it to input a value in my workbook sheet within the given range, I get the 'subscript out of range' error. The element on the webpage is text, and I even tried to format the values in my workbook as text and use 'text' instead of 'value' in the script, but no luck. Do you have any suggestions?

    • @AutomationMadeEasy
      @AutomationMadeEasy  3 года назад

      Check the spelling of the sheet name. Incorrect spelling of shee name could be a potential cause of the error. check in ThisWorkBook.Sheets("SheetName").Range("A" & 4).text. Check the spelling of "SheetName". IF you still get the error share your code I will look into it.

    • @justinandlydiakroeger9441
      @justinandlydiakroeger9441 3 года назад

      @@AutomationMadeEasy
      I checked the spelling and still got the same error. Here's an excerpt from the script, the bottom line is the one that I get errors on. I tried variations of the following including changing 'Value' to 'Text'.
      Set doc = IE.document
      For intRow = 5 To 1000
      IE.document.getElementById("address").Value = ThisWorkbook.Sheets("Lookup").Range("A" & intRow).Value

    • @AutomationMadeEasy
      @AutomationMadeEasy  3 года назад

      cant make out from this code. Share your spreadsheet at info@automationandagile.com

  • @chiranjeev840
    @chiranjeev840 4 года назад

    Can you suggest me a book from where I can learn web based and excel based automations?

    • @AutomationMadeEasy
      @AutomationMadeEasy  4 года назад

      well I am not aware of any book as such, but there is plenty of content available online.
      Let me know if interested in a training.

  • @anubtiw
    @anubtiw 2 года назад

    Hi
    When I getelementbytagname, there are let's say 10 tag names. How to jump on to let's say 3rd tagname and get that inner text??

    • @AutomationMadeEasy
      @AutomationMadeEasy  2 года назад

      doc.getElementsByTagNane("name of tag")(2).innertext
      index begins from 0 hence 2nd index is actually pointing to 3rd element on the web page

    • @anubtiw
      @anubtiw 2 года назад

      @@AutomationMadeEasy When I enter that, I get a runtime error 424
      Which says object required.

    • @AutomationMadeEasy
      @AutomationMadeEasy  2 года назад

      need to see ur web page and script

  • @umachivukula3963
    @umachivukula3963 4 года назад

    I am getting this error while running this code as Runtime error
    Method 'Document 'of object 'Iwebbrowser2' failed . I have the add ins enabled.

    • @AutomationMadeEasy
      @AutomationMadeEasy  4 года назад

      Replace Set IE = CreateObject("InternetExplorer.Application") with
      Set IE = New InternetExplorerMedium
      Remaining code shall remain the same

  • @jamalshahul3842
    @jamalshahul3842 4 года назад

    Hello Bro, how to select a specific option in website drop-down list by VBA web scraping method, and also can we able to select the drop-down based on values or words in excel. Please help

    • @AutomationMadeEasy
      @AutomationMadeEasy  4 года назад

      refer below tutorial:
      ruclips.net/video/T6HRjiAdW38/видео.html

  • @Aayush752
    @Aayush752 3 года назад

    What if we do not have calculate button?

  • @miguellopezgonzalez2664
    @miguellopezgonzalez2664 4 года назад

    hello my friend once again im in a bit trouble for example regarding the macro i tould you with a lot of data on multiple columns so i need to make that when the data is filled then it waits for the user (so he can solve captcha) then the macro resumes ... now instead of posting a simpe result like that i want to make it for example as following
    after captcha has been entered the script "waits" until the result page is loaded then it need to read for 2 specific file names to determine the result for example if its valid it will read "images/si-vota-resultado.png" in wich case i want it to post just a simple "valid" in the other hand we have negative state wich loads images/no-vota.jpg" file either way i just care about the valid ones so ... i need to create something that when "si-vota-resultado" is found then it types the word valid as the result anything else will lead to continue the project after that i need to "re-start" over it again but this time with values on row 2 then 3 then 4 and so on i really really dont know how to achieve this i have been checking the video over and over again but i dont seem to find a way to detect that specific image name would be cool if you can share another way to contact you so maybe it could be easier to explain ... btw i would like to buy yo a coffe for your big effort man

    • @miguellopezgonzalez2664
      @miguellopezgonzalez2664 4 года назад

      okay nevermind i think i figured out ... i have found that when its valid it creates a different class that isnt getting called when its not valid i just wonder if:
      doc.getElementsByClassName("col-xs-6 col-sm-8 table-responsive").Value = Buena
      will work and also if the function will expect that return kinda forever
      what i really wnat to achieve is the following
      1.- user starts the macro
      2.- macro fills in data
      3.- macro waits for user interaction (in other words it waits for the user to solve re-captcha)
      4.- macro waits for the page with the results after the user has clicked "check" in above step then the result comes in a xxxx.xxx/resultado.html page
      5.- macro checks for that particular class "col-xs-6 col-sm-8 table-responsive" if its found post "VALID" as result if not it returns to the original site and post row 2
      why i want to make this its around 14 Million data sets that needs to be compared and since its already difficult by copy one by one and also solving the captcha i want to make my life a bit easier :(

    • @miguellopezgonzalez2664
      @miguellopezgonzalez2664 4 года назад

      once again and after doing some research it seems like the best way to wait for user interaction is this
      Msgbox "Click to go on", , "Example"
      and in the case they are looking form something specific seems like the best way is this
      Set element = doc.getElementsByClassName("col-xs-6 col-sm-8 table-responsive")("VALIDA") and then just call the element if the responses im not aware if it works or not as i have said its around 7M data fields wich i need to first "arrange" so no mistakes will be made but i like to post how or what do i got in order for someone else who has the same issue will solve theyre issues (sorry for commenting your thread a lot)

  • @imeldamartinez4363
    @imeldamartinez4363 3 года назад

    Hi I have a question how do I make the code to click a hyperlynk

  • @drs10301
    @drs10301 4 года назад

    Dear Sir, what is the code for "attaching files via whatsapp" using excel VBA in chrome

  • @dharmendrasinghchauhan2325
    @dharmendrasinghchauhan2325 4 года назад

    Hi
    I can't get innertext
    Plz help

  • @arlanvisser71
    @arlanvisser71 3 года назад

    what if i dont want the results on the spreadsheet and just have it data entry into the cells on web page, than click save and goto line 2 for next

    • @AutomationMadeEasy
      @AutomationMadeEasy  3 года назад

      you have to just store the fetched value in a variable and use the variable in data entry

    • @arlanvisser71
      @arlanvisser71 3 года назад

      @@AutomationMadeEasy your example doc.getElementById("num1"). Value = 4. Can the value be letters or just numbers? What if i wanted letters instead of numbers?

    • @AutomationMadeEasy
      @AutomationMadeEasy  3 года назад

      doc.getElementById("num1"). Value = "test"

    • @arlanvisser71
      @arlanvisser71 3 года назад

      @@AutomationMadeEasy i am working on code for yahoo finance to look up stocks cop jnj

  • @davida6146
    @davida6146 5 лет назад

    Bookmark: 3:30

  • @ejazmohammad1181
    @ejazmohammad1181 4 года назад

    Hello , i have a web page which doesn't work in IE , i need mozilla to scrape

    • @AutomationMadeEasy
      @AutomationMadeEasy  4 года назад

      Below tutorial may serve your purpose:
      ruclips.net/video/iIhEyrYfqbA/видео.html

  • @nikosalminen8203
    @nikosalminen8203 4 года назад

    I'm sorry about my bad English.
    How I can replace that straight link (IE.navigate "www.automationandagile.com/p/demo-page.html")
    if I have already form open in IE and wanna use that open form?
    I can't use that straight link because form is back of password. I have to search first correct vehicle and after that I can open form.
    ...in other words, address/url of the form changes every time.

    • @AutomationMadeEasy
      @AutomationMadeEasy  4 года назад

      Refer below tutorial:
      ruclips.net/video/qsU_9KVaYOU/видео.html

  • @braakee
    @braakee 2 года назад

    I'm getting a debug error on my strName line. Error says object variable or with block variable not set. Can you solve this error?
    strName = doc.getElementsByClassName("view_more_summary")(0).innerText

  • @juniorz289
    @juniorz289 3 года назад

    Bro. Thank you so much for explaining so well. I would like to work with you on some projects. Please contact me

  • @dharmendrasinghchauhan2325
    @dharmendrasinghchauhan2325 3 года назад

    Hi
    I am using vba in chrome here I can't get .innertext

  • @james3603
    @james3603 3 года назад

    wha4 if the web site has authentication? like i need username and password to get into the page?

    • @AutomationMadeEasy
      @AutomationMadeEasy  3 года назад

      You can automate the login procedure using the same approach as explained in the tutorial and perform your tasks.

  • @smi5tx
    @smi5tx 4 года назад

    I'm getting a "Variable not defined" Error, just after the loop - For intRow = 2 to 5? Any suggestions on what I am doing wrong...

    • @AutomationMadeEasy
      @AutomationMadeEasy  4 года назад

      did you write option explicit at the top?

    • @smi5tx
      @smi5tx 4 года назад

      Yes i started off with Option Explicit

    • @smi5tx
      @smi5tx 4 года назад

      removed it and ran run, but now I get a "run time error "438" ....Debug at "Do While IE.Busy..."

    • @AutomationMadeEasy
      @AutomationMadeEasy  4 года назад

      did you select Microsoft internet controls and HTML controls from Tool/References

    • @smi5tx
      @smi5tx 4 года назад

      @@AutomationMadeEasy I did...i still get error 438 ...Object doesn't support this property or method?

  • @rankardgaming3662
    @rankardgaming3662 4 года назад

    what if the result will be on the other web page?

    • @AutomationMadeEasy
      @AutomationMadeEasy  4 года назад

      you can swith to the page. Similar explanation is provided in below tutorial:
      ruclips.net/video/qsU_9KVaYOU/видео.html

  • @alternativeenergyresearch4857
    @alternativeenergyresearch4857 2 года назад

    I am getting 438 runtime error how to solve

    • @AutomationMadeEasy
      @AutomationMadeEasy  2 года назад

      at which point you are getting this error? Also what is the error dewcription

    • @alternativeenergyresearch4857
      @alternativeenergyresearch4857 2 года назад

      @@AutomationMadeEasy I have tried to use this method to fetch data for stock price in excel if possible make a video on it 🙏🙏🙏

  • @matthewdeguzman8480
    @matthewdeguzman8480 5 лет назад

    Dumb question - newbie here - TimeStamp 22:08 to 22:11 how to do that?

    • @AutomationMadeEasy
      @AutomationMadeEasy  5 лет назад

      Aplogies for late reply. Are you talking about the "&" operator?

  • @madhankumar1990
    @madhankumar1990 4 года назад

    How to put the value if the xml page is like ""

    • @AutomationMadeEasy
      @AutomationMadeEasy  4 года назад

      doc.getElementsByName("query")(0).Value= "test"

    • @madhankumar1990
      @madhankumar1990 4 года назад

      ​@@AutomationMadeEasyThank you much, similarly how to get data from web table without ID

  • @davida6146
    @davida6146 5 лет назад

    what if the form uses a name instead of an ID?

    • @AutomationMadeEasy
      @AutomationMadeEasy  5 лет назад +1

      doc.findElementsByName("name of element")(0).Value = "test1457"

    • @davida6146
      @davida6146 5 лет назад

      Automation Made Easy thanks!

    • @davida6146
      @davida6146 5 лет назад

      Automation Made Easy I’m also stuck with another part. The button I’m wanting to use only has a input value and type... how could I use either one? Thanks again!

    • @AutomationMadeEasy
      @AutomationMadeEasy  5 лет назад

      share the html of the button

    • @davida6146
      @davida6146 5 лет назад

      @@AutomationMadeEasy the button html is:
      and the class html is:

  • @balvindersingh33366
    @balvindersingh33366 3 года назад

    Sir ji suru se shikhna h yo bhi hindi me please English kam samjh aati h