Quote:
|
Originally Posted by Teddy
I've been googling around and for the life of me I can't figure out how to programmatically discover if my end user has opened a spreadsheet in Excel or as an ActiveX object in IE.
Any ideas?
|
How would someone open your spreadsheet in IE? If I type a path to an Excel Workbook in the Address bar or use the Browser Open command it still opens the file in the Excel Application.
Perhaps you can check the application name? Try.
?Application.Name
Microsoft Excel
If Not Application.Name = "Microsoft Excel" Then
Msgbox "Please open this workbook in the Excel Application." & vbcrlf & _
"Functionality is not available in IE Browser"
Exit Sub
End If
I havn't tested this... may not work within the browser. Just my first guess to check for this condition.