LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Running macro in a browser window

I have a workbook that runs some VBA code that works fine when the
workbook is opened from within Excel but gives various errors when I
open the workbook using a link on a web page. When I click the link
the workbook opens up in the browser and IE says that it's in the
"Unknown Zone" even though IIS is running on my local machine. I'm
getting errors on several lines of code but as an example I get error
1004 "Application-defined or object-defined error" when I run the
following line.

Worksheets("NAICS (Hidden)").Visible = xlSheetVisible

I'm confident the solution is to somehow get IE to open this workbook
in the Intranet Zone. This should actually already be happening
because when I go to Tools-Internet Options-Security and the select
Intranet Zone and click the Sites button, the domain my machine is on
is listed. Any ideas on this one?
 
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
Workbooks opening in browser window Richard Excel Discussion (Misc queries) 0 January 17th 07 04:52 PM
Running Macro minimises window PaulW Excel Discussion (Misc queries) 1 April 19th 06 04:49 PM
file browser window saybut Excel Discussion (Misc queries) 1 August 15th 05 06:06 PM
Open all various hyperlinks in SAME browser window? Michael hauschild Links and Linking in Excel 2 July 13th 05 06:12 PM
Close Browser window with VBA brianelson Excel Programming 1 July 12th 03 05:35 AM


All times are GMT +1. The time now is 01:25 PM.

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

About Us

"It's about Microsoft Excel"