Saves the worksheet range "$A$1:$B$11" as a Web page without interactivity so that it can be viewed in any current browser: : ActiveWorkbook « Excel « VBA / Excel / Access / Word

VBA / Excel / Access / Word
1. Access
2. Application
3. Data Type
4. Data Type Functions
5. Date Functions
6. Excel
7. File Path
8. Forms
9. Language Basics
10. Math Functions
11. Outlook
12. PowerPoint
13. String Functions
14. Windows API
15. Word
16. XML
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
VBA / Excel / Access / Word » Excel » ActiveWorkbook 
Saves the worksheet range "$A$1:$B$11" as a Web page without interactivity so that it can be viewed in any current browser:
 
Public Sub SaveRangeWeb()
    ActiveWorkbook.PublishObjects.Add _
        SourceType:=xlSourceRange, _
        Filename:=ActiveWorkbook.Path & "\Sample1.htm", _
        Sheet:=ActiveSheet.name, _
        Source:="$A$1:$B$11", _
        HtmlType:=xlHtmlStatic

    ActiveWorkbook.PublishObjects(1).Publish (True)
End Sub

 
Related examples in the same category
1. Get current active workbook full name
2. Opens a workbook named MyWorkbook.xls located in the same directory as the active workbook. An error is generated if the file cannot be found.
3. Saving Worksheets as Web Pages
4. Previewing a workbook before saving it as a Web page
5. For Each-Next is useful for cycling through each member of a collection
6. Looping through a Collection: use the For Each- Next structure
7. Closes the active workbook without saving changes
8. Protects the structure and windows of the active workbook with the password 0llsecurd:
9. Working with the ActiveWorkbook Object
10. Printing a Worksheet
11. Setting Excel to Remove Personal Information from the File Properties When You Save
12. Setting Passwords and Read-Only Recommendation for a Workbook
13. To set a "password to modify," set the WritePassword property of the Workbook object.
14. Opening a New Window on a Workbook
15. Programmatically Retrieving Link Source Information
16. Standard Workbook Properties
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.