PC Review


Reply
Thread Tools Rate Thread

Activeworkbook and Internet Explorer

 
 
=?Utf-8?B?Qm9iVA==?=
Guest
Posts: n/a
 
      11th Jun 2007
I have a workbook that gets opened via Internet Explorer. When this happens
and the user does not have Excel already running, Excel launches within IE.
The user then clicks on a button to bring up a form. They make some
selections and then click on a button that takes their selections and posts
it to a given sheet.

The problem is that although the correct workbook is shown and the form
loads properly, when it tries to post the selections back to the book, it
thinks that Book1 is the activebook and no matter what I put into the form
(e.g. Application.Workbooks("MyBook").Activate, etc.) it never activates that
book and so it fails to write back teh results where it should.

The code works flawlessly when run from within native Excel. Does anyone
know how to tell Excel that is within IE to activate another book?
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      11th Jun 2007
This may not be a good solution for you...

I'd do my best to not let MSIE open the file:

How to Configure Internet Explorer to Open Office
Documents in the Appropriate Office Program Instead of in Internet Explorer
http://support.microsoft.com/?scid=162059

There are just too many things that don't work when an excel file is opened in a
browser.

BobT wrote:
>
> I have a workbook that gets opened via Internet Explorer. When this happens
> and the user does not have Excel already running, Excel launches within IE.
> The user then clicks on a button to bring up a form. They make some
> selections and then click on a button that takes their selections and posts
> it to a given sheet.
>
> The problem is that although the correct workbook is shown and the form
> loads properly, when it tries to post the selections back to the book, it
> thinks that Book1 is the activebook and no matter what I put into the form
> (e.g. Application.Workbooks("MyBook").Activate, etc.) it never activates that
> book and so it fails to write back teh results where it should.
>
> The code works flawlessly when run from within native Excel. Does anyone
> know how to tell Excel that is within IE to activate another book?


--

Dave Peterson
 
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
Internet explorer and windows explorer lock up when Internet explorer menu bar is used David D. Pettyjohn Windows XP Help 1 16th Dec 2007 05:14 AM
The user blank, has decided to allow the Internet Explorer Web Browser () to be added to Internet Explorer Nocturnal Spyware Discussion 1 1st Oct 2005 08:50 AM
Saving Web pages in Internet Explorer as .mht causes Internet Explorer to crash M Windows XP General 3 7th Nov 2004 06:22 PM
internet explorer (ie) issue with activeworkbook.saved (save prompt) AAARGH. Darren Lord Microsoft Excel Programming 0 17th Sep 2003 09:27 AM
Constant Internet Explorer Errors: Shuts internet explorer down Tyler Microsoft Windows 2000 Applications 2 15th Jul 2003 04:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:06 PM.