Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default publishing html using excel - problem with files becoming corrupt

hi

i use excel to publish various htm(l) files to shared drives for
access by about 100 people. the publish macro is set to run using an
Application.OnTime function and publishes a file (every 2mins) using
the code below:

ActiveWorkbook.PublishObjects.Add(xlSourceRange, _
"j:\am\tips.htm", "", "zone", xlHtmlStatic, _
"panEuro Risk_30594", "").publish (True)

on occassion the sheet notifies of an error requiring this line to be
debugged. often stoping the procedure and restarting it will do the
trick. however, when this doesn't work the only option is to change
the name of the file (above tips.htm would become something like
tips1.htm) because the original file is corrupt. this means notifying
all users to change their shared drive address...and this has happened
a few times in the past couple of weeks.

anyone know why this file could be corrupting itself only on certain
random occassions? if so, any ideas on how to prevent this?

all ideas are MORE THAN welcomed. cheers.
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
Publishing a static table as html using jscript (Excel 2007) [email protected] Excel Discussion (Misc queries) 3 May 24th 08 05:36 AM
Programmatically determining corrupt excel files Greg Luce[_2_] Excel Discussion (Misc queries) 0 December 14th 07 06:19 PM
Publishing to html is broken in Excel 2007 JonBaker Excel Discussion (Misc queries) 0 September 19th 07 05:40 PM
Keep saving corrupt Excel files Luke Chalmers Excel Discussion (Misc queries) 2 June 22nd 07 04:34 PM
Publishing Excel Files to a web page DAS Excel Discussion (Misc queries) 1 December 15th 06 12:49 AM


All times are GMT +1. The time now is 05:51 PM.

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"