473,386 Members | 1,997 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,386 software developers and data experts.

Need VBA to click link on website and open new form without logging out

I have written an Excel Macro that opens a website, adds data to textboxes, and "clicks" to next page.

This new page has a "link" that opens a new Form when clicked,

I tried to Code the "click" to open the new Form automatically, but get a message that "If you leave this page, you will lose your session and be logged out".

Right-clicking the phrase shows the following Properties:

General - "runpage?page=formLoader&formLoader.targetFormId=A D01"

Protocol - "HyperText Transfer Protocol with Privacy"

Type - "UK//RUNPAGE File"

Address (URL) - "https://ewf.companieshouse.gov.uk//runpage?page=formLoader&formLoader.targetFormId=AD 01"

Viewing the Source Code shows:

<a href="http://bytes.com/runpage?page=formLoader&formLoader.targetFormId=AD 01"class="addressLink smallFont">Change address</a> </div> <div class="grid_4">

Hope this can enable someone to explain how to "code" the link?
May 17 '15 #1
1 2270
Rabbit
12,516 Expert Mod 8TB
It sounds like the logging out and destruction of the session is part of the coding of the site. There's nothing you can do about that.

Unless you're saying that if you do it manually it doesn't log you out. In which case, there's hidden form data that you need to submit. Or you need to simulate the actual clicking of the link instead of just inputting the url. Either method should work.
May 17 '15 #2

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

Similar topics

4
by: Mr. T | last post by:
Hi, I need some help here. I have a On Exit procedure on that opens a form. Whenever anyone clicks anything outside of it the form opens. No problem here. But I need it not to open if the...
1
by: protista | last post by:
I'm trying to Open a form Without Interruption like msn messenger does for an email alert. I'm doing the same thing, but when my form opens up it interrupts my typing... any help?
2
by: ghobley | last post by:
Hello, My application has 2 forms on display at one time. The form on the left contains a tree view which drives the contents of the form on the right. My problem is that I would like to capture...
0
by: colleen1980 | last post by:
Macro and button all works fine. It goes to other database and open the form from their. Now only problem is that there are two forms link to each other. When i click on the button it works fine...
1
by: ctp | last post by:
I'm trying to build an interactive form that dynamically pulls prices from a mySQL table based on a users selection from a number of text & dropdown menus. The idea is that the user does not have to...
2
by: sheeres | last post by:
Is there a way to open an Access Form WITHOUT running the queries on the form?
0
by: GS | last post by:
IN the application I developing, I have to deal with some https website that uses JavaScript function with parameters in link to open new window when the link is clicked. The default is that the...
5
by: billa856 | last post by:
Hi, My project is in MS Access 2002. In that I want to open one form multiple times. I put one button on my main form. Now whenever I click on that button than form will be open. Now when I...
1
by: PerumalSamy | last post by:
HI I done a project in asp.net with VB coding and sql server 2005 as back end. Now i need to generate an auto email everyday for current date based on the date field in my database table . ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.