vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
Erstellen von dynamischen Kontextmen?s - wann immer Sie sie brauchen!  
 vb@rchiv Quick-Search: Suche startenErweiterte Suche starten   Impressum  | Datenschutz  | vb@rchiv CD Vol.6  | Shop Copyright ©2000-2025
 
zurück

 Sie sind aktuell nicht angemeldet.Funktionen: Einloggen  |  Neu registrieren  |  Suchen

Suche Visual-Basic Code
Re: Tabelle in XML umwandeln 
Autor: gaschi14
Datum: 22.04.08 11:27

 
 
 
        For col = 0 To (intCols - 1)
            Range(strStrtCell + "1").Offset(i, col).Select
            Select Case col
                Case 0
                        Set xmlS_CellElement = xml.createElement("S_Cell")
                        xmlS_RowElement.appendChild xmlS_CellElement
                        subxmlAttribute "colname", col + 1, xmlS_CellElement
 
                        Set xmlS_CellBodyElement = xml.createElement( _
                          "S_CellBody")
                        xmlS_CellElement.appendChild xmlS_CellBodyElement
 
                        Set xml_PhysicalSymbolElement = xml.createElement( _
                          "PhysicalSymbol")
                        subPhysicalValueElement Mid(Range(strStrtCell + _
                        "1").Offset(i, col).Value, 1, 1), _
                        xml_PhysicalSymbolElement
                        subSubscriptElement Mid(Range(strStrtCell + "1").Offset( _
                        i, col).Value, 2), xml_PhysicalSymbolElement
                        xmlS_CellBodyElement.appendChild _
                        xml_PhysicalSymbolElement
                Case Else
                        Set xmlS_CellElement = xml.createElement("S_Cell")
                        xmlS_RowElement.appendChild xmlS_CellElement
                        subxmlAttribute "colname", col + 1, xmlS_CellElement
 
                        Set xmlS_CellBodyElement = xml.createElement( _
                          "S_CellBody")
                        xmlS_CellElement.appendChild xmlS_CellBodyElement
                        If Range(strStrtCell + "1").Offset(i, col).Value <> _
                          "" Then
                            strNoOfFootnotes = Split(Range(strStrtCell + _
                            "1").Offset(i, col).Value, ",")
                        Else
                            strNoOfFootnotes(0) = "End"
                        End If
                        intNo = 0
 
                        While (intNo <= UBound(strNoOfFootnotes))
                        Select Case strNoOfFootnotes(intNo)
                        Case 1
                            If col = intCols - 1 Then
                                If Not blFootnote1 And strLabel <> "FBDIMM" Then
                                        strAddress1 = Range(strStrtCell + _
                                          "1").Offset(i, col).Address
                                        strAddress1 = Replace(strAddress1, "$", _
                                        "JM")
                                        subFootnotes strAddress1, strLabel, _
                                        blRanks, "1", xmlS_CellBodyElement
                                        blFootnote1 = True
                                ElseIf Not blFootnote1 And strLabel = "FBDIMM" _
                                  Then
                                        strAddress1 = Range(strStrtCell + _
                                        "1").Offset(i, col).Address
                                        strAddress1 = Replace(strAddress1, "$", _
                                        "JM")
                                        subFootnotes strAddress1, strLabel, _
                                        blRanks, "1", xmlS_CellBodyElement
                                        blFootnote1 = True
                                Else
                                        subCrossRefElement strAddress1, _
                                          "Footnote", xmlS_CellBodyElement
 
                                End If
                            Else
                               subxmlText Range(strStrtCell + "1").Offset(i, _
                                 col).Value, xmlS_CellBodyElement
                             End If
                        Case 2
                            If col = intCols - 1 Then
                                If Not blFootnote2 Then
                                    strAddress2 = Range(strStrtCell + _
                                      "2").Offset(i, col).Address
                                    strAddress2 = Replace(strAddress2, "$", _
                                    "JM")
                                    subFootnotes strAddress2, strLabel, _
                                    blRanks, "2", xmlS_CellBodyElement
                                    blFootnote2 = True
                                ElseIf blRanks Then
                                    subCrossRefElement strAddress2, "Footnote", _
                                      xmlS_CellBodyElement
                                End If
                             Else
                                subxmlText Range(strStrtCell + "1").Offset(i, _
                                  col).Value, xmlS_CellBodyElement
                             End If
                        Case 3
alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
Tabelle in XML umwandeln3.158gaschi1422.04.08 11:21
Re: Tabelle in XML umwandeln1.555gaschi1422.04.08 11:21
Re: Tabelle in XML umwandeln1.384gaschi1422.04.08 11:23
Re: Tabelle in XML umwandeln1.349gaschi1422.04.08 11:24
Re: Tabelle in XML umwandeln1.344gaschi1422.04.08 11:25
Re: Tabelle in XML umwandeln1.295gaschi1422.04.08 11:26
Re: Tabelle in XML umwandeln1.307gaschi1422.04.08 11:27
Re: Tabelle in XML umwandeln1.275gaschi1422.04.08 11:27
Re: Tabelle in XML umwandeln1.354gaschi1422.04.08 11:27
Re: Tabelle in XML umwandeln1.361gaschi1422.04.08 11:28
Re: Tabelle in XML umwandeln1.347gaschi1422.04.08 11:28
Re: Tabelle in XML umwandeln1.357gaschi1422.04.08 11:29
Re: Tabelle in XML umwandeln1.325gaschi1422.04.08 11:29
Re: Tabelle in XML umwandeln1.322gaschi1422.04.08 11:30
Re: Tabelle in XML umwandeln1.411gaschi1422.04.08 11:30

Sie sind nicht angemeldet!
Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.

Einloggen  |  Neu registrieren

Funktionen:  Zum Thema  |  GesamtübersichtSuchen 

nach obenzurück
 
   

Copyright ©2000-2025 vb@rchiv Dieter Otter
Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.

Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel