How to Automate Web Scraping Using Excel Macros

Sdílet
Vložit
  • čas přidán 2. 08. 2024
  • In this video we would learn:
    How to scrape data from web pages using excel macros.

Komentáře • 228

  • @sacredchuck
    @sacredchuck Před 2 lety

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

  • @colinbray2990
    @colinbray2990 Před 2 lety

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

  • @ssadhees6481
    @ssadhees6481 Před 3 lety

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

  • @crayonsprimaryschool
    @crayonsprimaryschool Před 5 lety +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.

  • @manuela8605
    @manuela8605 Před 4 lety

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

  • @Yaqoobalvi
    @Yaqoobalvi Před 2 lety

    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. 👏👏👏

  • @nathanmitchell2827
    @nathanmitchell2827 Před 4 lety +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.

  • @saqibahmed2053
    @saqibahmed2053 Před 3 lety

    Very useful and simplified explanation! Keep up the good work

  • @immortal_code
    @immortal_code Před 2 lety

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

  • @jonathan528
    @jonathan528 Před 5 lety +1

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

    • @AutomationMadeEasy
      @AutomationMadeEasy  Před 5 lety

      Thank you

    • @juniorz289
      @juniorz289 Před 3 lety

      @@AutomationMadeEasy can you contact me?

    • @AutomationMadeEasy
      @AutomationMadeEasy  Před 3 lety

      @@juniorz289 Sure. Share contact details

    • @juniorz289
      @juniorz289 Před 3 lety

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

  • @CM-oq6ql
    @CM-oq6ql Před 3 lety

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

  •  Před 2 lety

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

  • @atomkrishna
    @atomkrishna Před 3 lety

    Vry well explained sahb

  • @jamshaidzafar5743
    @jamshaidzafar5743 Před 2 lety

    Very helpful video. Keep up the good work.

  • @soldeal4422
    @soldeal4422 Před 2 lety

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

  • @jeevant3406
    @jeevant3406 Před 4 lety

    Thanks a lot
    It really really helped

  • @gregyohngy
    @gregyohngy Před 4 měsíci

    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 Před 3 lety +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 Před 2 lety

      I would like to know the same

  • @karthikbalu123
    @karthikbalu123 Před 7 měsíci

    Very informative 👍

  • @MrAtaristic
    @MrAtaristic Před 3 lety

    An excellent tutorial

  • @bhuvaneshwaranm1282
    @bhuvaneshwaranm1282 Před 3 lety

    thanks for the video

  • @ANNUETAWAHCRPF
    @ANNUETAWAHCRPF Před 4 lety

    Sir you are great

  • @hennalessons2887
    @hennalessons2887 Před 5 lety

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

    • @AutomationMadeEasy
      @AutomationMadeEasy  Před 5 lety

      Thanks. Below is the link of my latest tutorial:
      czcams.com/video/7a8IofqBNo4/video.html

  • @me1sunil1yadav
    @me1sunil1yadav Před 4 lety +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?

  • @jakerusbarsky7023
    @jakerusbarsky7023 Před měsícem

    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  Před měsícem

      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

  • @modameradmar
    @modameradmar Před 4 lety

    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

  • @okechukwuumezurike2292

    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?

  • @PrakashManokumpuzha
    @PrakashManokumpuzha Před 2 lety

    super

  • @venkatesh.r7857
    @venkatesh.r7857 Před rokem

    Is there any macro support edge browser in web automate.

  • @Palwinder_SIngh_sandhu

    Thanks

  • @Gaurav.YourDedicatedAssistant

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

  • @Dave-tg1pu
    @Dave-tg1pu Před 5 lety

    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  Před 5 lety

      Sorry i have never worked on macbooks so I comment, but below tutorial would serve your purpose irrespective of the operating system.
      czcams.com/video/iIhEyrYfqbA/video.html

  • @jine-jing7753
    @jine-jing7753 Před 3 lety

    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!

  • @listenergy
    @listenergy Před 3 lety

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

  • @Chris-ft4cq
    @Chris-ft4cq Před 5 lety

    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  Před 5 lety

      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

  • @christiaangouws5853
    @christiaangouws5853 Před 5 lety +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  Před 5 lety

      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 Před 5 lety

      @@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 Před 5 lety

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

    • @AutomationMadeEasy
      @AutomationMadeEasy  Před 5 lety

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

  • @alalston3978
    @alalston3978 Před 2 lety

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

    • @AutomationMadeEasy
      @AutomationMadeEasy  Před 2 lety

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

  • @kylenolen7774
    @kylenolen7774 Před rokem

    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 :)!

  • @gilsonmiranda8372
    @gilsonmiranda8372 Před 5 lety +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  Před 5 lety

      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.
      czcams.com/video/-GUw22ecRwI/video.html

  • @justinandlydiakroeger9441

    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  Před 3 lety

      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 Před 3 lety

      @@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  Před 3 lety

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

  • @harpreetsinghgrover
    @harpreetsinghgrover Před 2 lety

    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.

  • @ajays6818
    @ajays6818 Před 4 lety

    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  Před 4 lety +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 Před 4 lety

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

    • @AutomationMadeEasy
      @AutomationMadeEasy  Před 4 lety

      '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.

  • @shirshakkandel10
    @shirshakkandel10 Před 4 lety

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

  • @windriver456
    @windriver456 Před 2 lety

    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  Před 2 lety

      Try alternate approach explained below:
      czcams.com/video/AEp0Yeis9AM/video.html

  • @habibullah0
    @habibullah0 Před 4 lety +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  Před 4 lety

      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 Před 4 lety

      @@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  Před 4 lety

      share ur code

    • @habibullah0
      @habibullah0 Před 4 lety

      @@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  Před 4 lety

      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) '

  • @userx460
    @userx460 Před 4 lety

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

  • @miguellopezgonzalez2664

    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 Před 4 lety

      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 Před 4 lety

      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)

  • @kamalkamal0123
    @kamalkamal0123 Před rokem

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

  • @am3dz
    @am3dz Před 4 lety

    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  Před 4 lety

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

  • @davida6146
    @davida6146 Před 4 lety

    Bookmark: 3:30

  • @kannannable
    @kannannable Před 4 lety

    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  Před 4 lety +1

      Refer belw tutorial:
      czcams.com/video/Qknt8qFR7kY/video.html

    • @kannannable
      @kannannable Před 4 lety

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

  • @tomrexon
    @tomrexon Před 4 lety

    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.

  • @pfarr6369
    @pfarr6369 Před 2 lety

    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  Před 2 lety +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 Před 2 lety

      @@AutomationMadeEasy Could i send you an email please?

    • @AutomationMadeEasy
      @AutomationMadeEasy  Před 2 lety

      @@pfarr6369 info@automationandagile.com

    • @AutomationMadeEasy
      @AutomationMadeEasy  Před 2 lety

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

  • @PRATISHK123
    @PRATISHK123 Před 2 lety

    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  Před 2 lety

      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

  • @aakashkarmakar683
    @aakashkarmakar683 Před 5 lety

    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  Před 5 lety

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

    • @aakashkarmakar683
      @aakashkarmakar683 Před 5 lety

      @@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  Před 5 lety +1

      yes its very much possible.

    • @aakashkarmakar683
      @aakashkarmakar683 Před 5 lety

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

    • @AutomationMadeEasy
      @AutomationMadeEasy  Před 5 lety

      noted

  • @prathamambre4769
    @prathamambre4769 Před 3 lety

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

  • @prakashchouhan8638
    @prakashchouhan8638 Před 2 lety

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

  • @jamalshahul3842
    @jamalshahul3842 Před 4 lety

    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

  • @dharmendrasinghchauhan2325

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

  • @colinbray2990
    @colinbray2990 Před 2 lety

    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 Před 2 lety

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

  • @alphaumi1031
    @alphaumi1031 Před 4 lety

    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!

  • @ichitti1434
    @ichitti1434 Před rokem

    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.

  • @chiranjeev840
    @chiranjeev840 Před 4 lety

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

    • @AutomationMadeEasy
      @AutomationMadeEasy  Před 4 lety

      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.

  • @dineshlataye7007
    @dineshlataye7007 Před 2 lety

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

  • @imeldamartinez4363
    @imeldamartinez4363 Před 3 lety

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

  • @Pritam5016
    @Pritam5016 Před 5 lety

    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  Před 5 lety

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

  • @saidivya1580
    @saidivya1580 Před 2 lety

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

  • @dharmendrasinghchauhan2325

    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

  • @juniorz289
    @juniorz289 Před 3 lety

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

  • @rohanmehta1388
    @rohanmehta1388 Před 3 lety

    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  Před 3 lety

      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"

  • @dharmendrasinghchauhan2325

    Hi
    I can't get innertext
    Plz help

  • @umachivukula3963
    @umachivukula3963 Před 4 lety

    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  Před 4 lety

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

  • @anubtiw
    @anubtiw Před 2 lety

    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  Před 2 lety

      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 Před 2 lety

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

    • @AutomationMadeEasy
      @AutomationMadeEasy  Před 2 lety

      need to see ur web page and script

  • @rankardgaming3662
    @rankardgaming3662 Před 4 lety

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

    • @AutomationMadeEasy
      @AutomationMadeEasy  Před 4 lety

      you can swith to the page. Similar explanation is provided in below tutorial:
      czcams.com/video/qsU_9KVaYOU/video.html

  • @arlanvisser71
    @arlanvisser71 Před 3 lety

    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  Před 3 lety

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

    • @arlanvisser71
      @arlanvisser71 Před 3 lety

      @@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  Před 3 lety

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

    • @arlanvisser71
      @arlanvisser71 Před 3 lety

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

  • @drs10301
    @drs10301 Před 3 lety

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

  • @ejazmohammad1181
    @ejazmohammad1181 Před 4 lety

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

    • @AutomationMadeEasy
      @AutomationMadeEasy  Před 4 lety

      Below tutorial may serve your purpose:
      czcams.com/video/iIhEyrYfqbA/video.html

  • @Aayush752
    @Aayush752 Před 3 lety

    What if we do not have calculate button?

  • @james3603
    @james3603 Před 3 lety

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

    • @AutomationMadeEasy
      @AutomationMadeEasy  Před 3 lety

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

  • @nikosalminen8203
    @nikosalminen8203 Před 4 lety

    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.

  • @smi5tx
    @smi5tx Před 4 lety

    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  Před 4 lety

      did you write option explicit at the top?

    • @smi5tx
      @smi5tx Před 4 lety

      Yes i started off with Option Explicit

    • @smi5tx
      @smi5tx Před 4 lety

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

    • @AutomationMadeEasy
      @AutomationMadeEasy  Před 4 lety

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

    • @smi5tx
      @smi5tx Před 4 lety

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

  • @dharmendrasinghchauhan2325

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

  • @alternativeenergyresearch4857

    I am getting 438 runtime error how to solve

    • @AutomationMadeEasy
      @AutomationMadeEasy  Před 2 lety

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

    • @alternativeenergyresearch4857
      @alternativeenergyresearch4857 Před 2 lety

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

  • @davida6146
    @davida6146 Před 4 lety

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

    • @AutomationMadeEasy
      @AutomationMadeEasy  Před 4 lety +1

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

    • @davida6146
      @davida6146 Před 4 lety

      Automation Made Easy thanks!

    • @davida6146
      @davida6146 Před 4 lety

      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  Před 4 lety

      share the html of the button

    • @davida6146
      @davida6146 Před 4 lety

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

  • @matthewdeguzman8480
    @matthewdeguzman8480 Před 5 lety

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

  • @madhankumar1990
    @madhankumar1990 Před 4 lety

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

    • @AutomationMadeEasy
      @AutomationMadeEasy  Před 4 lety

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

    • @madhankumar1990
      @madhankumar1990 Před 4 lety

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

  • @balvindersingh33366
    @balvindersingh33366 Před 3 lety

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

  • @braakee
    @braakee Před rokem

    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