Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Saving as Web Page


Hi!
Is there a code that will "Save as Web Page", the print area of the
currently active worksheet and give it a file name based on referencing
a cell within the currently active worksheet?
I've been searching for this for some time and cannot seem to find
anything. Perhaps I'm just looking in the wrong place!
Thanks for any help or advise!


--
Brian Matlack
------------------------------------------------------------------------
Brian Matlack's Profile: http://www.excelforum.com/member.php...fo&userid=3508
View this thread: http://www.excelforum.com/showthread...hreadid=531945

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Saving as Web Page

Dim rng as Range
set rng = Activesheet.Names("Print_Area")
activesheet.copy
activesheet.clearcontents
rng.copy Activesheet.Range(rng.Address).Paste

activeworkbook.SaveAs "C:\Myfolder\ & rng.parent.Range("B9").text & .html",
xlHtml

might get you started.

--
Regards,
Tom Ogilvy


"Brian Matlack" wrote:


Hi!
Is there a code that will "Save as Web Page", the print area of the
currently active worksheet and give it a file name based on referencing
a cell within the currently active worksheet?
I've been searching for this for some time and cannot seem to find
anything. Perhaps I'm just looking in the wrong place!
Thanks for any help or advise!


--
Brian Matlack
------------------------------------------------------------------------
Brian Matlack's Profile: http://www.excelforum.com/member.php...fo&userid=3508
View this thread: http://www.excelforum.com/showthread...hreadid=531945


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Saving as Web Page


Thanks Tom!!


--
Brian Matlack
------------------------------------------------------------------------
Brian Matlack's Profile: http://www.excelforum.com/member.php...fo&userid=3508
View this thread: http://www.excelforum.com/showthread...hreadid=531945

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
Saving Excel 2010 files as web page or single file web page Joe Artis Excel Discussion (Misc queries) 3 April 29th 23 03:44 AM
Page Setup when saving a worksheet as a web page pattyw Excel Discussion (Misc queries) 3 July 29th 08 09:25 PM
Excel saving as web page and scaling the print out to fit one page Tanya Ducady Excel Discussion (Misc queries) 0 May 10th 07 07:35 PM
Saving as a web page Bobh Excel Worksheet Functions 0 September 25th 05 09:14 AM
saving page Juco Excel Worksheet Functions 0 March 4th 05 06:15 PM


All times are GMT +1. The time now is 06:50 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"