ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   macro to copy absolute cells, then paste relative (https://www.excelbanter.com/excel-programming/317038-macro-copy-absolute-cells-then-paste-relative.html)

Bill Carr

macro to copy absolute cells, then paste relative
 
I am trying to record a macro that will copy an absolute group of cells, then
paste relative to the cell that was active before running the macro. Can
anyone help?
Or maybe there is another way to accomplish my goal. I want to be able to
insert a given set of cells in the middle of the document, any number of
times. It is a form to be used over and over, but each time there will be a
different number of these groups of cells in the form.


Trevor Shuttleworth

macro to copy absolute cells, then paste relative
 
Bill

maybe this will set you off in the right direction:

Range("A1:E9").Copy ActiveCell

Copies the range of cells to wherever the active cell is.

Regards

Trevor


"Bill Carr" <Bill wrote in message
...
I am trying to record a macro that will copy an absolute group of cells,
then
paste relative to the cell that was active before running the macro. Can
anyone help?
Or maybe there is another way to accomplish my goal. I want to be able to
insert a given set of cells in the middle of the document, any number of
times. It is a form to be used over and over, but each time there will be
a
different number of these groups of cells in the form.





All times are GMT +1. The time now is 01:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com