Solved

How do I access a website that exists in favourites

Posted on 2004-09-08
4
160 Views
Last Modified: 2010-05-02
I want to access a website that exists in favourites? I'm automating a task that will execute a website that exists in favourites.  Will someone please help me with this?
0
Comment
Question by:willwatters
  • 2
  • 2
4 Comments
 
LVL 10

Expert Comment

by:anv
ID: 12004536
hi willwatters

u can get help from here..

http://www.freevbcode.com/ShowCode.Asp?ID=495

the code is to add a site to favorites..

u can manipulate it to get the site from favorites..


good luck
0
 

Author Comment

by:willwatters
ID: 12004831
Do you know how i can do it using WshSpecialFolders object.

I have started the following code:

Dim oShell, oSpFolders

Set oShell = WScript.CreateObject("WScript.Shell")
Set oSpFolders = oShell.SpecialFolders

0
 
LVL 10

Accepted Solution

by:
anv earned 50 total points
ID: 12004902
0
 

Author Comment

by:willwatters
ID: 12005372
I tried the following code to access a web site in favourites, but it doesn't work. Will you please fix it for me.

Dim oShell, oSpFolders, i, strExamen
   
    strExamen = "Examen - Home Page"
   
    Set oShell = WScript.CreateObject("WScript.Shell")
    Set oSpFolders = oShell.SpecialFolders("Favourites")
   
    For i = 0 To oSpFolders.Count
        If oSpFolders.Item(i) = strExamen
            oIE.Navigate2 "http://WWW.examen.com"
            While oIE.Busy
                'wait for the page to load
            Wend
            GoTo GotExamenHP
        End If
    Next i

    MsgBox ("Error opening Examen Home Page : " & Err.Description)

GotExamenHP:
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
add text to end of existing text in file 16 69
MsgBox 2 47
Cannot Load VB6 on Windows 10. Installed OK but error on opening existing project. 7 76
vb6 connector to mongodb 2 51
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now