Ramachandran
New Member
- Joined
- Oct 17, 2011
- Messages
- 47
I have a table that I sort in a specific matter then "paste" it sorted just below the unsorted one.
This works fine, but only transfers the .value from the old cell.
Say if I wanted to get some additional property, like the font size, I could do:
I would like the new cell to have all properties of the old cell, like it's color, borders, formatting, et cetera.
Is there some magic word, like say cell.EntireContent, that I can use?
Code:
...
for i = 1 to lastRow[INDENT]for j = 1 to 10
[/INDENT]
[INDENT=2]Set oldCell = Cells(sortedArr(i), j)
[/INDENT]
Cells(i + lastRow, j) = oldCell[INDENT]next j[/INDENT]
next i
This works fine, but only transfers the .value from the old cell.
Say if I wanted to get some additional property, like the font size, I could do:
Code:
Cells(i + lastRow, j).font.size = oldCell.font.size
I would like the new cell to have all properties of the old cell, like it's color, borders, formatting, et cetera.
Is there some magic word, like say cell.EntireContent, that I can use?