ie-automation

Excel IE Automation identifying a “css” element

放肆的年华 提交于 2021-02-05 09:43:27
问题 Still plundering along scraping web sites, printing from web pages, etc. but ran into a snag I'm hoping someone can help me with. The pic below is shows the tab that I'd like to activate and I have the code to get me right there but can't activate the tab. While the last line of code will work on my desktop PC, I can't get it to work on my other PC's. I likely could juxtapose IE on the other PC's to make it work but I know that I'm just identifying the element wrong and if I did it correctly

Excel IE Automation identifying a “css” element

巧了我就是萌 提交于 2021-02-05 09:42:39
问题 Still plundering along scraping web sites, printing from web pages, etc. but ran into a snag I'm hoping someone can help me with. The pic below is shows the tab that I'd like to activate and I have the code to get me right there but can't activate the tab. While the last line of code will work on my desktop PC, I can't get it to work on my other PC's. I likely could juxtapose IE on the other PC's to make it work but I know that I'm just identifying the element wrong and if I did it correctly

Automate IE via Excel to fill in a dropdown and continue

跟風遠走 提交于 2021-01-30 08:56:31
问题 Admittedly still a newbie with automating IE via Excel but would appreciate whatever help anyone can offer with this. Basically, this opens up a webpage, selects a button, fills in 2 dropdowns, enters a value and then presses another button to display what I need. I do have this working using SendKeys with a bunch of {Tabs}, {`}, {Down}, etc but it's rather clunky. I'd rather do this the right way but I can only get to the 1st dropdown, select the value that I need and then it stops. What I'm

VBA code works in debug mode, but fails in run mode

蓝咒 提交于 2020-06-29 03:49:13
问题 I am trying to fill one input field in Internet explorer, but the code is only working in debug mode, while I am pressing F8 on each of the actions. When I am running the code automatically, the value fill is not working, the input field remains empty. What could be the issue? Here is the HTML part of the code: <input tabindex="0" class="select__input" type="text"> </div> <div class="sm__amount" name="payment"> <div class="sm__send"> <div class="amount selected" id="amount_get"> <div class=

Need to automate IE with drop down menu using Excel VBA

空扰寡人 提交于 2019-12-25 03:45:16
问题 I want to automate a site having drop down menu named 'Timesheet' and then click on the Menu item 'Project' which is 3rd in the list. Here is the HTML code: <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <li class="dropdown"> <a href="#" ng-click="$event.preventDefault()" title="Timesheet" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-time"></span>

Using VBA to click on a link/button in an IE web page

假装没事ソ 提交于 2019-12-24 02:57:23
问题 I have read a lot of information on using VBA to click on a link in IE, but I cannot get it to work in my case. The relevant HTML code is as follows: <div id="LinkButton_3" widgetId="LinkButton_3"> <a class="Row_Icon" data-dojo-attach-point="linkNode" data-dojo-attach-event="onClick:_onLinkButtonClicked">Company XYZ. - #12345</a> </div> The VBA code I have tried, with 3 different attempts noted, is as follows: Dim ieApp As SHDocVw.InternetExplorer Dim ieDoc As MSHTML.HTMLDocument Dim button

Choose file to upload dialog. Merge VBS and VBA process

岁酱吖の 提交于 2019-12-11 05:49:30
问题 Hi i have two procedures: Click button to open dialog box in IE To enter data to that dialog box Both of them work seperatly The problem is that VBA wont proceed to 2nd procedure if dialog box is open. I think work around would be to launch vbs script (which holds all interaction with dialog box) prior to vba and it would solve automation problem. I have both of them in VBA. So is this feasable? If yes I would need help to do VBS script. Also how to pass path variable from VBA to VBS. 1st

VBA IE automation - wait for the download to complete

流过昼夜 提交于 2019-12-01 13:30:02
I am trying to automate some tasks which are being done through Internet explorer, which include downloading a file and then copying it to a different directory and renaming it. I was more or less successful in finding the information on how to do this, the code is working, but it has exceptions, therefore I would be grateful if someone could help me to improve this code. There are two things I would like to do: Insert a loop, so that the script would wait for certain elements to appear and only then would proceed with execution. I have found something on this page, however, I also would like

VBA IE automation - wait for the download to complete

南楼画角 提交于 2019-12-01 11:48:51
问题 I am trying to automate some tasks which are being done through Internet explorer, which include downloading a file and then copying it to a different directory and renaming it. I was more or less successful in finding the information on how to do this, the code is working, but it has exceptions, therefore I would be grateful if someone could help me to improve this code. There are two things I would like to do: Insert a loop, so that the script would wait for certain elements to appear and