피벗테이블을 refresh 하시고 read reange로 범위를 지정하지 않고 읽으면 자동으로 전체 범위를 읽습니다.
아래는 데이터테이블(dt)를 html 형식으로 바꾸는 코드입니다.
("<table border=1><tbody><tr><th>"+
String.Join("</th><th>",dt.Columns.Cast(Of DataColumn).Select(Function (x) x.ColumnName).ToArray)+
"</th></tr>"+
"<tr>"+String.Join("</tr><tr>",(From x In dt.AsEnumerable
Let cells="<td>"+String.Join("</td><td>",x.ItemArray)+"</td>"
Select cells).ToArray)+"</tr></tbody></table>")