Web site by clicking the button

magushi

New Member
Joined
Sep 20, 2014
Messages
6
Dear, good day!


Again I come to request your assistance for this action;


Below is the code where I need to click a button.
The strange thing is that I am using the common code to clicking a button, but this is not working.
This being reported Error 91!


Below is the code button in html:

excel-png--4


Below is the macro code to click on it:


.Document.getElementByid ("DetalhesProposta1_lnkbtnDocumentoEletronico"). Click



Can you help me?


GRATEFUL!
 
Last edited:

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

ParamRay

Well-known Member
Joined
Aug 6, 2014
Messages
1,195
.
.

Insert a Command Button with this code:

Code:
Private Sub CommandButton1_Click()

    ActiveWorkbook.FollowHyperlink _
        Address:="http://www.google.com/"

End Sub
 

samucavsj

New Member
Joined
Sep 22, 2014
Messages
2
.
.

Insert a Command Button with this code:

Code:
Private Sub CommandButton1_Click()

    ActiveWorkbook.FollowHyperlink _
        Address:="http://www.google.com/"

End Sub

My friend i use and dont function.

below follows the códigoas in html in which need to click.


<TD class = clsCampo2 align = left> <SPAN id = DetalhesProposta1_lblPropostaD> Proposal Mapfre </ SPAN> </ TD>
<TD style = "WIDTH: 300px" align = left> <SPAN id = DetalhesProposta1_lblPropostaDValue> 10407846860628243 </ SPAN> & nbsp; <INPUT style = "BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" id = DetalhesProposta1_lnkbtnDocumentoEletronico ******* = "************ ('/ EntradaPropostas /ImprimirProposta.aspx?NumeroNSU=10407846860628243 ',' ',' resizable = no, menubar = no, scrollbars = yes, width = 100, height = 100 '); "src = "../ Images / print.gif" type = image name = $ DetalhesProposta1 lnkbtnDocumentoEletronico> </ TD>
<TD style = "BACKGROUND-COLOR: #eee" colspan = 2 align = middle> <SPAN id = DetalhesProposta1_lblPropostaConciliadaD> Proposal reconciled with TronWeb </ SPAN> </ TD> </ TR>

I need click in DetalhesProposta1_lnkbtnDocumentoEletronico

I await your return!!

Thanks
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,120
Messages
5,835,504
Members
430,362
Latest member
ConnerJ

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
Top