Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a certificate on my machine that allows me to download files
from some site. The site (or certificate) requires me to say ok to client authentication when the window pops up and then my code can proceed. I want to be able to automate the clicking on the OK in the client authentication window, any suggestions? Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can give this a try... It creates an external VB script to send a key.
Sub AnswerQuestion() Dim fso As FileSystemObject Dim fsoFile As Variant Set fso = New FileSystemObject Set fsoFile = fso.CreateTextFile("C:\Bypass.vbs") fsoFile.writeline "Set fso = Createobject(""Wscript.shell"")" fsoFile.writeline "wscript.sleep 1000" 'Adjust time fsoFile.writeline "fso.sendkeys ""y"", true" fsoFile.Close End Sub Sub test() Dim wshShell As Variant 'Create Script to answer question Call AnswerQuestion 'Run the script to answer the Yes No question Set wshShell = CreateObject("Wscript.Shell") wshShell.Run ("C:\Bypass.vbs") MsgBox "Tada", vbYesNo End Sub -- HTH... Jim Thomlinson " wrote: I have a certificate on my machine that allows me to download files from some site. The site (or certificate) requires me to say ok to client authentication when the window pops up and then my code can proceed. I want to be able to automate the clicking on the OK in the client authentication window, any suggestions? Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry with my answer just given you need to reference the code to "Microsoft
Scripting Runtime". In the VBE select Tools - References and check "Microsoft Scripting Runtime" -- HTH... Jim Thomlinson " wrote: I have a certificate on my machine that allows me to download files from some site. The site (or certificate) requires me to say ok to client authentication when the window pops up and then my code can proceed. I want to be able to automate the clicking on the OK in the client authentication window, any suggestions? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Change authentication in 2007? | Excel Discussion (Misc queries) | |||
User authentication/protection | Excel Discussion (Misc queries) | |||
Excel Windows Authentication to SQL Server | Excel Discussion (Misc queries) | |||
Save As Authentication Issue From ASP.NET | Excel Discussion (Misc queries) | |||
authentication information? | Excel Discussion (Misc queries) |