Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Constantly i find people are opening my forms which contain programming
in IE. Unfortunetly some code will not perform correctly in Ie, and instead of figuring out what dosnt, It would be very convenient if there were a way to tell if the spreadsheet's in ie or excel. Anyone got any idea's? Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
There was a similar post not long ago: The solution is to check the Container
property of the workbook, which "Returns the object that contains the specified embedded workbook." If the workbook is open in IE then ThisWorkbook.Container.Name will be "Microsoft Internet Explorer." If it is open in Excel, there is no "container" since it is not embedded, and the property call will error out, so you need error trapping to catch that: Public Function ExcelOrIE() As String Dim CName as String On Error Goto MustBeExcel CName = ThisWorkbook.Container.Name If CName = "Microsoft Internet Explorer" Then CName = "IE" Else CName = "Something Else" ExcelOrIE = CName Exit Function MustBeExcel: ExcelorIE = "Excel" End Function "UBER_GEEK" wrote: Constantly i find people are opening my forms which contain programming in IE. Unfortunetly some code will not perform correctly in Ie, and instead of figuring out what dosnt, It would be very convenient if there were a way to tell if the spreadsheet's in ie or excel. Anyone got any idea's? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Spreadsheet will not open without Excel Application being open fir | Excel Discussion (Misc queries) | |||
Excel screen capture to capture cells and row and column headings | Excel Discussion (Misc queries) | |||
Is there a formula to capture data between "Tabs" on a spreadsheet | Excel Worksheet Functions | |||
Can I open a spreadsheet If I don't have excel | Excel Discussion (Misc queries) | |||
How to open another Excel spreadsheet to copy data into current spreadsheet ? | Excel Programming |