PC Review


Reply
Thread Tools Rate Thread

Branching in IE via XL Macro: pt I

 
 
expect_ed
Guest
Posts: n/a
 
      12th Jun 2008
I have a nice little utility that jumps to a specfic project in a web app by
project number. Fortunately the URL of the web app ends with the project
number so that part was easy, the cell looks like this:

=HYPERLINK('Work Area'!$B$6&C44, C44&" WOs")

B6 calculates the URL from the project number and C44 holds the project
number.

The web app requires a log in. If the app has not timed out the project
window opens but if it has timed out an error window opens, so I then use a
Windows macro program to do the following:

Watch for the IE window that contains the win apps error message
Tab to the Login link, enter
Wait for the Login screen
Tab to the user name field and enter the user name
Tab to the PW field, type the PW and enter
Wait for the win app welcome screen (you are now logged into the app)
Minimize the win app window
Make Excel the active window
Loop back and wait for the next error message

I would like to incorporate these steps into Excel so the utility can be
distributed throughout the company without the need for the Windows macro
program.

1. Can IE be controlled from an Excel macro in this way?
2. What code do I use to check whether the win apps error screen results
from a Hyperlink?

Thanks in advance for any assistance!
ed
 
Reply With Quote
 
 
 
 
aidan.heritage@virgin.net
Guest
Posts: n/a
 
      12th Jun 2008
On Jun 12, 11:28*am, expect_ed <expec...@discussions.microsoft.com>
wrote:
> I have a nice little utility that jumps to a specfic project in a web app by
> project number. *Fortunately the URL of the web app ends with the project
> number so that part was easy, the cell looks like this:
>
> =HYPERLINK('Work Area'!$B$6&C44, C44&" WOs")
>
> B6 calculates the URL from the project number and C44 holds the project
> number.
>
> The web app requires a log in. *If the app has not timed out the project
> window opens but if it has timed out an error window opens, so I then use a
> Windows macro program to do the following:
>
> * * *Watch for the IE window that contains the win apps error message
> * * *Tab to the Login link, enter
> * * *Wait for the Login screen
> * * *Tab to the user name field and enter the user name
> * * *Tab to the PW field, type the PW and enter
> * * *Wait for the win app welcome screen (you are now logged into the app)
> * * *Minimize the win app window
> * * *Make Excel the active window
> * * *Loop back and wait for the next error message
>
> I would like to incorporate these steps into Excel so the utility can be
> distributed throughout the company without the need for the Windows macro
> program.
>
> 1. *Can IE be controlled from an Excel macro in this way?
> 2. *What code do I use to check whether the win apps error screen results
> from a Hyperlink?
>
> Thanks in advance for any assistance!
> ed


I have a utility written by someone else and therefore available on
line called LivePrice - it's an application that retrieves data for
share prices. I think that if you find this file and look at the code
(which the programmer has kindly and deliberatly left in clear view)
it might give you some useful ideas!
 
Reply With Quote
 
expect_ed
Guest
Posts: n/a
 
      12th Jun 2008
Sounds good. Where do I find it?

"(E-Mail Removed)" wrote:

> On Jun 12, 11:28 am, expect_ed <expec...@discussions.microsoft.com>
> wrote:
> > I have a nice little utility that jumps to a specfic project in a web app by
> > project number. Fortunately the URL of the web app ends with the project
> > number so that part was easy, the cell looks like this:
> >
> > =HYPERLINK('Work Area'!$B$6&C44, C44&" WOs")
> >
> > B6 calculates the URL from the project number and C44 holds the project
> > number.
> >
> > The web app requires a log in. If the app has not timed out the project
> > window opens but if it has timed out an error window opens, so I then use a
> > Windows macro program to do the following:
> >
> > Watch for the IE window that contains the win apps error message
> > Tab to the Login link, enter
> > Wait for the Login screen
> > Tab to the user name field and enter the user name
> > Tab to the PW field, type the PW and enter
> > Wait for the win app welcome screen (you are now logged into the app)
> > Minimize the win app window
> > Make Excel the active window
> > Loop back and wait for the next error message
> >
> > I would like to incorporate these steps into Excel so the utility can be
> > distributed throughout the company without the need for the Windows macro
> > program.
> >
> > 1. Can IE be controlled from an Excel macro in this way?
> > 2. What code do I use to check whether the win apps error screen results
> > from a Hyperlink?
> >
> > Thanks in advance for any assistance!
> > ed

>
> I have a utility written by someone else and therefore available on
> line called LivePrice - it's an application that retrieves data for
> share prices. I think that if you find this file and look at the code
> (which the programmer has kindly and deliberatly left in clear view)
> it might give you some useful ideas!
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
branching macro =?Utf-8?B?QnJhbmNoaW5nIG1hY3Jvcw==?= Microsoft Excel Programming 15 12th Sep 2007 05:45 AM
Branching in a macro BillShut Microsoft Excel Programming 1 16th Feb 2004 10:35 PM
Branching Macro Paul Moles Microsoft Excel Programming 2 6th Nov 2003 03:28 PM
Excel "branching" Macro Paul Moles Microsoft Excel Worksheet Functions 0 6th Nov 2003 01:23 PM
Excel "branching" Macro Paul Moles Microsoft Excel Worksheet Functions 0 6th Nov 2003 01:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:48 AM.