vba
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and Help » VBA

VBA

The UK's most regular instructor-led training courses.
Training information: excel computer course london · Excel courses · Microsoft Office VBA training

resolvedResolved · Low Priority · Version Standard

VBA

Matthew has attended:
Excel Advanced course
Excel VBA course

by - delegate Matthew [2 posts] (2008 Feb 15 Fri, 16:07) replyReply

I am trying to write a web query for a site that gives a unique SESSION ID every time it is accessed. This means the code is useless after the first session times out.

Is there any way to resolve this please?

Excel VBA 2 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2008 Sep 8 Mon + 9 Tue Bayswater 2 book now £495 £495
2003 2008 Sep 18 Thu + 19 Fri Bloomsbury 3 book now £475 £495
2003 2008 Sep 25 Thu + 26 Fri Southwark 5 book now £450 £485
2003 2008 Oct 6 Mon + 7 Tue Bayswater 5 book now £450 £485
2007 2008 Oct 13 Mon + 14 Tue Bayswater 7 book now £345 £399
2003 2008 Oct 23 Thu + 24 Fri Southwark 5 book now £450 £485
Full Schedule: See all 44 Excel VBA course dates.
Bookings currently available until 26th November 2009.

RE: VBA

by - trainer Rich platinum contributer[711 posts] (2008 Apr 4 Fri, 10:28) replyReply

Hi Matthew.

I notice this post has been unanswered for quite a while, probably because we need a bit more detail.

What language is the web site using to produce its pages? (eg. php, asp etc.)

What are you getting returned, and why is the code useless? Do you mean because the URL you give the web query needs to change each time? Have you tried just leaving out the SESSION ID from the URL?

Also, if the URL normally requires a log-in (to get the web information) then this will also be a problem. You may need to speak to the web administrator who may be able to set up a unique page based on the time and date and password. You could use an MD5 string to achieve this.

eg. public page is accessible at all times, but requires the correct md5 string. MD5 string is made up of date+time (to a 10 minute window?) + password.

PHP code on web site: md5(date("Y-m-d H:i:s", strtotime("now()"))."agreedPassword";

VBA function: see http://di-mgt.com.au/src/basMD5.bas.html or http://excelsig.org/VBA/wwHash.htm for examples. Or see Dr Soong's post at http://www.tutorials.de/forum/visual-basic/275442-md5-per-vba.html (provides a text file of the function you can copy/paste).

Then use the md5 string in your URL of the web query.
eg. http://www.thedomain.com/dir/web-query-file.php?key=hrjwky67542uierh

Hope this helps.

Regards, Rich


Related articles

· Advanced level training: Microsoft Excel and the Web
· 3 Reasons Why Excel Training Courses For Employees Can Improve Your Business
· Features of Microsoft Excel that assist in Analysis of Financial Data
· Excel Macros for the Non-Programmer
· Microsoft Excel Training: Essential for Today's Employees

Please browse our web site to find out more about
excel computer course london and other Microsoft training courses.

Excel tip:

Finding your worksheets quickly

The arrows to the left of the worksheets are used to move between one sheet at a time or first / last worksheet, but if you right click on the arrow buttons it gives you all worksheets in your workbook.

View all Excel hints and tips

Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information
AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz