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: 2
Default Publishing to web..Macro issue

Hello all!

I have recently upgraded to Office 2003 from Office XP.
Here is my dilemma.

Before the upgrade I had written a macro which would publish a selected
range of cells to a .HTM file using a specified cell as the filename. This
worked wonderfully. Now when I run my macro in office 2003, the resulting
file is a .mhtml file which from what I understand is a MIME encapsulated
HTML file which is a self runinng single web page. However, when I FTP these
to my website for my clients to view they get text, no graphics, colors,
etc...

Please look at the following code which worked correctly in Office XP now
doesnt work in Office 2003.

ActiveWorkbook.PublishObjects.Add( _
SourceType:=xlSourceRange, _
Filename:=Worksheets("Schedule").Range("C4").Value , _
Sheet:="Schedule", _
Source:="B1:F107", _
HtmlType:=xlHtmlStatic).Publish
ChDir "C:\Documents and Settings\ScottZierler\My Documents"

Another thought.....If I record a new macro selecting the cells and save to
the web, the resulting file has a HTM extension, not a MHTML extension as my
previous macro now mysteriously generates.

THANKS FOR YOUR HELP!

Scott

 
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
Issue with a macro juancarlos Excel Discussion (Misc queries) 18 September 17th 09 09:41 PM
Macro issue Farhad Excel Discussion (Misc queries) 5 December 21st 08 06:05 PM
Macro issue Sue Excel Discussion (Misc queries) 0 October 8th 08 08:05 PM
Excel Macro Issue Trying to autorun Macro Upon Opening Worksheet wyndman Excel Programming 2 May 25th 04 06:59 PM
Macro Issue alexm999[_9_] Excel Programming 2 January 29th 04 10:46 PM


All times are GMT +1. The time now is 12:18 AM.

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"