Selecting IE Hyperlink - Excel VBA

KevinK381

New Member
Joined
May 2, 2016
Messages
5
Hi all -

This is my first post to the forums although I have already found tons of useful information on here in the past. My question is related to building a web scraping macro. I have gotten as far as navigating to the website, entering username and password, selecting the 1st hyperlink, but now am stuck on trying to expand embedded tables so I can export them to excel. To be clear there are 100+ tables I want to be able to expand and dump to some location. The problem is the hyperlinks do not seem to be named and I cannot figure how else to direct the code to click these. I would think there is a loop I could write that would expand, save, expand, save as I am thinking each of these hyperlinks are identified similarly.

I am very new to navigating IE with VBA so any help would be greatly appreciated! The "inspect element" data is below.

<span ng-show="(column.isEditable && !cell.isInEditMode) || !column.isEditable" class="ng-binding"> 7<!-- ngIf: cell.isCellWithLink.length --></span>
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Do you need you click the hyperlinks to get the tables to expand?
 
Upvote 0
Here is the underlying code in "Inspect Element"

<span class="ng-binding" ng-show="(column.isEditable && !cell.isInEditMode) || !column.isEditable">
7


<!-- ngIf: cell.isCellWithLink.length -->
</span>
 
Upvote 0
Upvote 0
Any idea why I can't copy and paste the code?

The forum renders HTML code. To post HTML code you have wrap it in HTML tags (the <> icon in the message editor) and put a space inside every opening and closing tag, like this:
HTML:
< p>Paragraph< /p>
 
Upvote 0
Here are the 3 "elements" I have to select in order then repeat for roughly 120+ different embedded tables. I want to dump this info from an online repository into excel files in a location I can access.

Element 1: < span> class="ng-binding" ng-show="(column.isEditable && !cell.isInEditMode) || !column.isEditable">
7< !-- ngIf: cell.isCellWithLink.length -- >< /span>

Element 2: < I> title="Export to Excel" class="pull-right fa fa-table icon-nugget-right" ng-click="export(grid, 'detail', 'Detail for ' + columnTitle + '-' + cellValue)" >< /i>

Element 3: < button> class="btn btn-primary ng-isolate-scope" ng-click="csv()" filename="Detail for Current-7.csv" ng-csv="getArray" >CSV< /button>
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top