Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA coding to export multiple calcualtion sheets as webpages

I have created a very simple code that right now runs through a
list of references, pulls the relevant information into our template
(ie, calculate) and prints. I need to revise (overhaul) the code so
that it does a similar task but now saves each calcualtion as a web
page named for the reference and the date it was exported. Can someone
please help me get a shell going?

Thanks,
ko

(my uber-simple code is below, it won't help probably)

Sub PRINT_ALL()
For Each c In Range("List4")
Range("A3").Value = c.Value
Calculate
ActiveWindow.SelectedSheets.PrintOut Copies:=1,
Collate:=True
Next c
End Sub

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default VBA coding to export multiple calcualtion sheets as webpages

I am not sure when to put it in your loop but the following code grabs the
text from "a1" and sticks it into a string with the Month and Day all
separated with Underscores, and saves it as month_day_reference.html

I used underscores because filenames don't work well with slashes common in
dates.

Dim c_date
Range("a1").Select

c_date = Month(Now) & "_" & Day(Now) & "_ " & Selection.Formula

ActiveWorkbook.SaveAs Filename:= _
c_date, FileFormat:=xlHtml _
, ReadOnlyRecommended:=False, CreateBackup:=False


" wrote:

I have created a very simple code that right now runs through a
list of references, pulls the relevant information into our template
(ie, calculate) and prints. I need to revise (overhaul) the code so
that it does a similar task but now saves each calcualtion as a web
page named for the reference and the date it was exported. Can someone
please help me get a shell going?

Thanks,
ko

(my uber-simple code is below, it won't help probably)

Sub PRINT_ALL()
For Each c In Range("List4")
Range("A3").Value = c.Value
Calculate
ActiveWindow.SelectedSheets.PrintOut Copies:=1,
Collate:=True
Next c
End Sub


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
export sheets to multiple new files Tanya Excel Discussion (Misc queries) 8 April 20th 09 10:00 PM
export multiple sheets to multiple excel files Tanya Excel Discussion (Misc queries) 1 April 20th 09 08:57 PM
Does anyone have any good references for making excel sheets into webpages? dd Excel Discussion (Misc queries) 1 January 22nd 07 02:01 PM
Export multiple sheets to 1 csv file. Mark Bath Excel Programming 4 January 14th 05 03:09 AM
multiple calcualtion Nick Excel Programming 1 June 4th 04 02:16 PM


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