1
XMLリテラルをVB.NETブロックに挿入する方法を理解してください。 iCol = iCol + 1 iTMP = iTmp + ICOL (ループで例えば私はinsertinf新規タグの前にいくつかの変数を増やす必要がある)新しいタグを挿入する前にXMLリテラルにアクションのブロックを挿入する方法
Dim objDoc As XDocument = <?xml version="1.0" encoding="utf-8" standalone="no"?>
. . .
<%= From i In Enumerable.Range(3, LastRow)
Where UCase(Globals.ThisAddIn.Application.ActiveWorkbook.ActiveSheet.Range("Y" + CStr(i)).Value) = "Y" Select
iCol = iCol + 1
iTMP = iTmp + iCol
<TagWithData>Globals.ThisAddIn.Application.ActiveWorkbook.ActiveSheet.Range("Y" + CStr(iTMP)).Value</TagWithData>
. . .