A
Alan
I'm inserting a row and would like the newly inserted row
to have the same cell formulas (relative ref's) and cell
formats as the originally selected row. Is this possible?
The first row of my worksheet has labels. Row 2 thru n
contain data records. Some of the data record cells have
formulas. I want to insert a new row below the labels
with the same cell formats and formula as the other data
records. My current steps are:
WS.Range("A2").Select
Selection.EntireRow.Insert
A row is inserted below the labels but the new row
inherits the cell formats from the label row rather than
the selected 1st data row and there are no forumlas.
If this is not possible during the insertion, is there a
simple way to copy/paste the cell formats and formulas
from the 1st data record to the newly inserted row? I
could then insert the row, set the row cell values to
NULL, copy/paste the 1st data record format/formulas to
the newly inserted row then initialize whatever cell
values I want.
thanks.
to have the same cell formulas (relative ref's) and cell
formats as the originally selected row. Is this possible?
The first row of my worksheet has labels. Row 2 thru n
contain data records. Some of the data record cells have
formulas. I want to insert a new row below the labels
with the same cell formats and formula as the other data
records. My current steps are:
WS.Range("A2").Select
Selection.EntireRow.Insert
A row is inserted below the labels but the new row
inherits the cell formats from the label row rather than
the selected 1st data row and there are no forumlas.
If this is not possible during the insertion, is there a
simple way to copy/paste the cell formats and formulas
from the 1st data record to the newly inserted row? I
could then insert the row, set the row cell values to
NULL, copy/paste the 1st data record format/formulas to
the newly inserted row then initialize whatever cell
values I want.
thanks.