Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel or Web Browser

Status
Not open for further replies.

riskassure

Programmer
May 6, 2005
33
US
Hi,

Is there a VBA code that can tell whether I am opening my Excel spreadsheet in Excel, or in a Web Browser, like IE?

I tried

Applicaton.name

but it always gives me Microsoft Excel as the answer, whether the spreadsheet is opened in Excel or in a web browser.

Any help will be appreciated!

~~CW~~
 
I don't remember the exact location but did run across something like this on the Mr. Excel website.
 
Did you try Application.Parent ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top