Vapaa kuvaus

Aloituksia

0

Kommenttia

4

  1. Sub+RtC()Dim+lrow+As+RangeDim+x+As+Integer,+roC+As+IntegerDim+HTval+As+VariantDim+tbl+As+ListObject:+Set+tbl+=+ActiveSheet.ListObjects(ActiveSheet.ListObjects(1).Name)HTval+=+Application.Transpose(tbl.HeaderRowRange.Value)+++'okx+=+tbl.DataBodyRange.Columns.Count+++++++++++++++++++++++++'okroC+=+1For+Each+lrow+In+tbl.DataBodyRange.Rows++++Sheets.Add(After:=Sheets(Sheets.Count)).Name+=+"RS"+&+roC++++Worksheets("RS"+&+roC).Range("A2").Resize(x,+1).Value+=+HTval++++Worksheets("RS"+&+roC).Range("B2").Resize(x,+1).Value+=+Application.Transpose(lrow.Value)++++roC+=+roC+++1NextEnd+Sub