Change range border style : Range Format « 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 » Range Format 
Change range border style
 

Sub Extend()
  With Range("A1:E5")
    .Borders.LineStyle = xlLineStyleNone
    .Resize(.Rows.Count + 1).Name = "Database"
  End With
End Sub

 
Related examples in the same category
1. Format current region
2. The Font property
3. Use the Range and Cells properties of the Worksheet object to return a Range object.
4. Sets to True the Bold property of the Font object contained in the Range object
5. The Interior property:changes the Color property of the Interior object contained in the Range object:
6. Specify colors with VBA's RGB function.
7. Formatting Range: HorizontalAlignment, VerticalAlignment, MergeCells
8. Formatting Range: Font
9. Changes font to bold
10. Changes color of numbers < 100
11. Set the color for whole range
12. Change range border color
13. Providing Dynamic Scaling to Your Worksheets
14. Strolling Through the Color Palette
15. Line style: xlContinuous
16. Line style: xlDash
17. Line style: xlDashDot
18. Line style: xlDashDotDot
19. Line style: xlDot
20. Line style: xlDouble
21. Line style: xlLineStyleNone
22. Line style: xlSlantDashDot
23. Using the Interior Object to Alter the Background of a Range
24. Set the underline, color and font name
25. Make column headings bold
26. Add & format totals
27. Format date on report
28. Widen first column to display text
29. Make text in first column bold
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.