Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Code to tell if workbook is opened in browser

Don't know the exact answer - but why not just add an On Error line to your code.

Regards
BrianB
------------------------------------------------------


(Ted Theodoropoulos) wrote in message . com...
i have macros that won't run successfully in a browser window and need
to run in a stand alone instance of excel. is there a function that
can determine if the workbook is opened in IE or excel?

TIA

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Code to tell if workbook is opened in browser

i could but each macro gives different errors. it would take a bit of
work to test every macro, record the error number and then trap it. i
will do it if i have to but it seems like a crude approach. i'm not
above using a crude approach i just hope there's a better way.

something with the application object maybe???


Don't know the exact answer - but why not just add an On Error line to your code.

Regards
BrianB

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Code to tell if workbook is opened in browser

Some additional information


http://support.microsoft.com/?id=162059
How to Configure Internet Explorer to Open Office Documents in the
Appropriate Office Program Instead of in Internet Explorer
--
Regards,
Tom Ogivy




"Ted Theodoropoulos" wrote in message
om...
i could but each macro gives different errors. it would take a bit of
work to test every macro, record the error number and then trap it. i
will do it if i have to but it seems like a crude approach. i'm not
above using a crude approach i just hope there's a better way.

something with the application object maybe???


Don't know the exact answer - but why not just add an On Error line to

your code.

Regards
BrianB



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Code to tell if workbook is opened in browser

thanks for the article that will help me personally but unfortunately
there will be several hundred users downloading this spreadsheet from
our intranet and i will have no control over how they configure IE. i
would think that the spreadsheet would open in the Intranet Zone and
allow me to manipulate it via VBA but for some reason, it doesn't.

this is a corporate environment where all IE settings are locked down
so i can't add trusted sites, etc. any other ideas???
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Code to tell if workbook is opened in browser

brian, i really appreciate your feedback. however, if you read my
response it's easy to see that i'm aware of how to trap errors.
please let me know if there's any other approach you might be aware
of.

thanks again,

ted


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Code to tell if workbook is opened in browser

thanks for the response jim. could you elaborate a little on what
you're proposing here. do you mean change something in the html
document that links to the spreadsheet? or after the spreadsheet is
open check the file path for the "file://" substring?

TIA
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
open workbook b when workbook a opened [email protected] uk Excel Discussion (Misc queries) 5 July 23rd 08 01:02 AM
Formating Cells used code when worksheet opened Don Excel Worksheet Functions 2 December 12th 06 06:29 AM
Excel cannot open while web browser opened soundbug Excel Discussion (Misc queries) 0 April 27th 06 06:18 AM
Publish A Workbook Onto The Web, Then Access Using My Web Browser. sigmad New Users to Excel 2 March 31st 05 06:45 PM
Run a macro when a workbook is opened Mervyn Thomas[_3_] Excel Programming 2 July 25th 03 11:40 AM


All times are GMT +1. The time now is 08:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"