Struggling with IE11 Automation in Excel VBA

ChrisBrook

New Member
Joined
Jan 15, 2016
Messages
12
Hi,

We recently had a product delivered which was created by a third party. This product is web based and has a static URL but is essentially a system to sell and administrator policies (probably as much as I can say!).

I'm currently building a VBA module that contains small navigation and process snippets that can be pieced together to automate certain processes etc.

I am however struggling to automate specific bits based on how the product is built.
I have referenced Microsoft Internet Controls and Microsoft HTML Object Library for my code to work.

So far I have been using getelementbyid to great effect however for a few bits I can't use this.

Below is a section that I am trying to click to load a page:

HTML:
Policy Summary

Any ideas of how I can select what is highlighted so that I can click it would be much appreciated!!

Thanks
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Sorry seems the code disappeared!
Should be this, I'm trying to use the 2nd li class for Policy Summary:

Code:
[LIST]<div class="pageNav" id="pageNav"><ul><li class="activeTab"><input type="hidden" name="_currentAction" id="_currentAction" value="TransACTMaster2_10_TransACT_TransACT"><a href="javascript:;" onmousemove="window.status='';" **********="window.status='';" id="" *******="DCT.Custom.pageLoadPreEvent('PolicySummary.ShowValidation',function(){DCT.ajaxProcess.submitAjax('PageContainer','TransACTMaster2_10_TransACT_TransACT','0','0','','','');})">Transaction History</a></li><li class="followingLink inactiveTab"><a href="javascript:;" onmousemove="window.status='';" **********="window.status='';" id="" *******="DCT.Custom.pageLoadPreEvent('PolicySummary.ShowValidation',function(){DCT.ajaxProcess.submitAjax('PageContainer','TransACTMaster2_10_TransACT_PolicySummary','0','0','','','');})">Policy Summary</a></li><li class="followingLink inactiveTab"><a href="javascript:;" onmousemove="window.status='';" **********="window.status='';" id="" *******="DCT.Custom.pageLoadPreEvent('PolicySummary.ShowValidation',function(){DCT.ajaxProcess.submitAjax('PageContainer','TransACTMaster2_10_TransACT_DocumentationManagement','0','0','','','');})">Documentation Management</a></li><li class="followingLink inactiveTab"><a href="javascript:;" onmousemove="window.status='';" **********="window.status='';" id="" *******="DCT.Custom.pageLoadPreEvent('PolicySummary.ShowValidation',function(){DCT.ajaxProcess.submitAjax('PageContainer','TransACTMaster2_10_TransACT_StandardLetters','0','0','','','');})">Standard Letters</a></li></ul></div>
[/LIST]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,062
Messages
6,122,923
Members
449,094
Latest member
teemeren

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