473,466 Members | 1,395 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

1 New Member
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 2272
Rabbit
12,516 Recognized Expert Moderator MVP
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 . ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.