Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() -----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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
publishing images in workbook as web page | New Users to Excel | |||
Publishing a Web Page | Excel Discussion (Misc queries) | |||
Publishing Chart to Web Page | Excel Discussion (Misc queries) | |||
Publishing a chart to a web page | Charts and Charting in Excel | |||
Publishing Sheet to Web Page | Excel Discussion (Misc queries) |