Forum: VB.NET |
Thema:
excel-Zelle formatieren:linksbündig |
Von:
paul meier (
08.08.2005 20:15) |
hi,
ich versuche in einer mit VB.Net erzeugten Tabelle in einer Zelle den Text linksbündig zu formatieren.
das klppt aber nicht, der Code:
[code]
Imports System.IO
Public Class clsExcel
Dim m_xlDateiname As String
Dim m_xlApp As excel.Application
Dim m_xlMappe As excel.Workbook
Dim m_xlBlatt As excel.Worksheet
Dim m_xlZelle As Excel.Range
Public Sub xlTab(ByVal nstForm1)
Dim App As New Excel.Application
App.Visible = True
Dim Doc As Excel.Workbook = App.Workbooks.Add()
Dim Sheet As Excel.Worksheet = Doc.Sheets(1)
Sheet.Range("D7").Select()
With Sheet.Cells
[/code]
das klappt aber nicht.
was ist da falsch?
gruß paul!
www.firmsoftware.de
Antworten
Vorsicht bei der Eingabe: Die Zeichen ' oder -- sind nicht erlaubt!