I have the following macro, which does what I need it to do, copy data from one column to another.
Range("T31:T549").Select
Selection.Copy
Range("E31").Select
ActiveSheet.Paste
Application.CutCopyMode = False
This macro now copies the data from row T31 to row T549 over to E31 to E549. These are all the data rows currently in the Worksheet. Can I adapt the macro to allow for new rows being added at row 31, which will push old row 31 down to row 32, and old row 549 down to 550 etc?? Rows will not be added above row 31, nor will rows be added below what is the current row 549.
This macro now copies data from Column T to Column E.
Is there a way to adapt this macro so that if columns are added or deleated before Column T that the data will still be copied correctly -- that is from what was originally Column T to the column that was originally Column E ?? Again the data to be copied will be between rows 31 and 549
If the Excel board wizards do NOT think that doing this is possible I would appreciate hearing that as well, so that I don't keep asking this same question.
Thanks
StanSz
Range("T31:T549").Select
Selection.Copy
Range("E31").Select
ActiveSheet.Paste
Application.CutCopyMode = False
This macro now copies the data from row T31 to row T549 over to E31 to E549. These are all the data rows currently in the Worksheet. Can I adapt the macro to allow for new rows being added at row 31, which will push old row 31 down to row 32, and old row 549 down to 550 etc?? Rows will not be added above row 31, nor will rows be added below what is the current row 549.
This macro now copies data from Column T to Column E.
Is there a way to adapt this macro so that if columns are added or deleated before Column T that the data will still be copied correctly -- that is from what was originally Column T to the column that was originally Column E ?? Again the data to be copied will be between rows 31 and 549
If the Excel board wizards do NOT think that doing this is possible I would appreciate hearing that as well, so that I don't keep asking this same question.
Thanks
StanSz