
ma ammetto sia un modo un po' artigianale...
Moderatori:
carloc,
g.schgor,
BrunoValente,
IsidoroKZ












Dim tmp As String
Sub code()
tmp = "\begin{array}{|"
For i = 1 To Selection.Columns.Count
tmp = tmp + "c|"
Next
tmp = tmp + "} \hline "
For e = 1 To Selection.Rows.Count
For i = 1 To Selection.Columns.Count
tmp = tmp + Cells(Selection.Row - 1 + e, Selection.Column - 1 + i).Value
If i < Selection.Columns.Count Then
tmp = tmp + " & "
Else
tmp = tmp + " \\ \hline "
End If
Next
Next
tmp = tmp + " \end{array}"
Debug.Print tmp
MsgBox tmp
End Sub

Visitano il forum: Nessuno e 88 ospiti