473,320 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Manipulating Javascript in IE from VBA

This is the button that I am trying to click on a webpage. All is does is open and menu with more buttons.

Expand|Select|Wrap|Line Numbers
  1. <a id="ctl00_ContentPlaceHolder1_TnBActivityList1_lbAddNew" class="actNewHyperlink" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$TnBActivityList1$lbAddNew','')">Add New</a>
I have tried a number of things and I cannot figure it out.

.Click is not working.

Here is a bunch of stuff I tried.

Expand|Select|Wrap|Line Numbers
  1. 'DID NOT WORK
  2. '            'IEexp.Document.Links("javascript:__doPostBack('ctl00$ContentPlaceHolder1$TnBActivityList1$lbBackToList','')").Click
  3. '            'IEexp.Document.Links("javascript:__doPostBack('ctl00$ContentPlaceHolder1$TnBActivityList1$lbAddNew','')").Click
  4. '            'DropDownRightElement.Links("javascript:__doPostBack('ctl00$ContentPlaceHolder1$TnBActivityList1$lbAddNew','')").Click
  5. '            'IEexp.Document.Links("javascript:__doPostBack('ctl00$ContentPlaceHolder1$TnBActivityList1$lbAddNew','')").Click
  6. '            'Call IEexp.Document.Frames(1).Document.parentWindow.execScript("javascript:__doPostBack('ctl00$ContentPlaceHolder1$TnBActivityList1$lbBackToList','')")
  7. '               Call IEexp.Document.Frames(1).Document.parentWindow.execScript("javascript:_doPostBack('ctl00$ContentPlaceHolder1$TnBActivityList1$lbAddNew','')")
  8. '
May 16 '14 #1
0 1195

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Erik Steffl | last post by:
I am trying to create a simple custom web spider using mozilla and javascript, the basic functionality is to open a website and then manipulate it using DOM (possibly opening links etc.). it...
6
by: Michael Sherwood | last post by:
I want to use VB .NET to fill in forms and submit a response to a remote Web server which uses Javascript and .asp. It seems to me that I need some type of Java interpreter within my VB code...
76
by: lorlarz | last post by:
Crockford's JavaScript, The Good Parts (a book review). This shall perhaps be the world's shortest book review (for one of the world's shortests books). I like Douglas Crockford (because I am a...
1
by: jerrysc | last post by:
I have a problem I've been trying to work through, to which I think there is a probably a simple solution I am missing. I am trying to pass a variable from php to javascript. Seems like it should be...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.