ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Automatic Moving (https://www.excelbanter.com/excel-programming/406633-automatic-moving.html)

Felix

Automatic Moving
 
I copied from the Internet data into one column. I'd like to automatically
move one cell with data one column across (to the right) and two lines up so
it sits next to another line with data.

To do this I would have to write a macro, selecting and shifting 2oo times.
Is there a way in a macro to move down 11 lines and right 1 column rather
then every time selecting a specific cell and move it?


Don Guillett

Automatic Moving
 
activecell.copy activecell.offset(11,1)
Will copy the active cell down 11 rows and one column to the right
to actually move use CUT instead of COPY

But, tell us what you are trying to do. There may be a better way.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Felix" wrote in message
...
I copied from the Internet data into one column. I'd like to automatically
move one cell with data one column across (to the right) and two lines up
so
it sits next to another line with data.

To do this I would have to write a macro, selecting and shifting 2oo
times.
Is there a way in a macro to move down 11 lines and right 1 column rather
then every time selecting a specific cell and move it?




All times are GMT +1. The time now is 05:34 AM.

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