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

I am trying to create a number of Web pages and where the
data source range is referenced want to use
ActiveSheet.Usedrange.Copy instead of a defined range as I
have done in the example below, how do I do this?

Also where does it get the 21106 from as the workbook is
called LapsedAMC's?

Your help much appreciated.

ActiveWorkbook.PublishObjects.Add(xlSourceRange, _
"H:\DBM\Dbmt670\A357XPLapsedAMC.htm", "Sheet1",
Range("A1:D76"), xlHtmlStatic, _
"LapsedAMC's_21106", "").Publish (True)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Publishing A Web Page

Hi Justin,

I publish my web pages without using any codes. Just do
a "Save as Web Page", then click "Publish", and then
check "AutoRepublish every time this workbook is saved".
When the Excel file is updated the web page automatically
gets updated. I'm using Excel XP.

If you want to use the UsedRange feature then try
replacing Range("A1:D76") with Range
(ActiveSheet.UsedRange.Address).

Hope this helps...

Chong Moua

-----Original Message-----
I am trying to create a number of Web pages and where the
data source range is referenced want to use
ActiveSheet.Usedrange.Copy instead of a defined range as

I
have done in the example below, how do I do this?

Also where does it get the 21106 from as the workbook is
called LapsedAMC's?

Your help much appreciated.

ActiveWorkbook.PublishObjects.Add(xlSourceRange , _
"H:\DBM\Dbmt670\A357XPLapsedAMC.htm", "Sheet1",
Range("A1:D76"), xlHtmlStatic, _
"LapsedAMC's_21106", "").Publish (True)
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Publishing A Web Page


-----Original Message-----
Hi Justin,

I publish my web pages without using any codes. Just do
a "Save as Web Page", then click "Publish", and then
check "AutoRepublish every time this workbook is saved".
When the Excel file is updated the web page automatically
gets updated. I'm using Excel XP.

If you want to use the UsedRange feature then try
replacing Range("A1:D76") with Range
(ActiveSheet.UsedRange.Address).

Hope this helps...

Chong Moua

-----Original Message-----
I am trying to create a number of Web pages and where

the
data source range is referenced want to use
ActiveSheet.Usedrange.Copy instead of a defined range as

I
have done in the example below, how do I do this?

Also where does it get the 21106 from as the workbook is
called LapsedAMC's?

Your help much appreciated.

ActiveWorkbook.PublishObjects.Add(xlSourceRang e, _
"H:\DBM\Dbmt670\A357XPLapsedAMC.htm", "Sheet1",
Range("A1:D76"), xlHtmlStatic, _
"LapsedAMC's_21106", "").Publish (True)
.

Works fine. Thanks
I have to import data from a foxpro table, filter out
customers for each of 450 dealers in turn, produce a
temporary worksheet and save it as a web page after
tarting it up a bit. Just hot to do the loopp now.

  #4   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Publishing A Web Page

I'm glad it worked.

I'm not sure if you could connect to the FoxPro database
or not. But if you can, you could use Excel to query the
database to get the data that you need, tune it up, and
save as web page. All can be done with little coding.
Look into MS Query. In Excel it's under Data | Import
External Data | New Database Query...

Hope this helps...

Chong Moua

-----Original Message-----

-----Original Message-----
Hi Justin,

I publish my web pages without using any codes. Just do
a "Save as Web Page", then click "Publish", and then
check "AutoRepublish every time this workbook is

saved".
When the Excel file is updated the web page

automatically
gets updated. I'm using Excel XP.

If you want to use the UsedRange feature then try
replacing Range("A1:D76") with Range
(ActiveSheet.UsedRange.Address).

Hope this helps...

Chong Moua

-----Original Message-----
I am trying to create a number of Web pages and where

the
data source range is referenced want to use
ActiveSheet.Usedrange.Copy instead of a defined range

as
I
have done in the example below, how do I do this?

Also where does it get the 21106 from as the workbook

is
called LapsedAMC's?

Your help much appreciated.

ActiveWorkbook.PublishObjects.Add(xlSourceRange , _
"H:\DBM\Dbmt670\A357XPLapsedAMC.htm", "Sheet1",
Range("A1:D76"), xlHtmlStatic, _
"LapsedAMC's_21106", "").Publish (True)
.

Works fine. Thanks
I have to import data from a foxpro table, filter out
customers for each of 450 dealers in turn, produce a
temporary worksheet and save it as a web page after
tarting it up a bit. Just hot to do the loopp now.

.

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 images in workbook as web page Hostohio New Users to Excel 0 January 12th 10 10:34 PM
Publishing a Web Page John V[_2_] Excel Discussion (Misc queries) 0 September 25th 07 05:14 PM
Publishing Chart to Web Page macroplay Excel Discussion (Misc queries) 5 October 28th 06 07:56 PM
Publishing a chart to a web page Stevie Charts and Charting in Excel 6 March 31st 05 05:10 AM
Publishing Sheet to Web Page MSW Excel Discussion (Misc queries) 0 March 11th 05 05:35 PM


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