+ Reply to Thread
Results 1 to 1 of 1

Excel running inside Internet Explorer

  1. #1
    Forum Contributor
    Join Date
    08-09-2005
    MS-Off Ver
    2003 & 2007
    Posts
    111

    Excel running inside Internet Explorer

    I've got a Excel VBA application (with a custom menu) that works fine in Excel, but has problems when the Excel file is opened with Internet Explorer.

    Is there a way for code to determine whether or not IE is the top-level application? Application.Name equals "Microsoft Excel" in both cases.

    In particular the Controls.Add method fails in the code below. (The same code runs without error if triggered manually after the workbook finishes loading.) Since Excel's menu is not even displayed when running under Internet Explorer, all I really need is some logic in my Workbook_Activate sub that checks to see if Excel is being run within IE.

    But how do I test for being run under IE?

    Please Login or Register  to view this content.

    If it's relevant, I'm testing with Excel 2003, but I need 2007 to work also.
    Last edited by dlh; 03-19-2010 at 07:57 PM. Reason: added more code & explanation

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1