ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Concatenate and copy in VBA (https://www.excelbanter.com/excel-programming/292281-concatenate-copy-vba.html)

ANDYGM[_3_]

Concatenate and copy in VBA
 
:confused:
I am writing a macro to transfer data from one worksheet to another
Unfortunately, the data is in different columns which makes things mor
awkward and because not all data is to be included the macro includes
routine to find the lines of data to be transposed and then finds th
next blank line on the other sheet into which it is to be transposed.

My particular problem is that there are 4 adjacent cells of data in th
same row in the first sheet which have to be concatenated into one cel
in the second.

I am using a FOR ...NEXT loop to control the movement, so it is eas
enough to find the correct row by the following method, e.g.

ActiveCell.Offset(rowOffset:=N, columnOffset:=0).Activate

How can I select all 4 cells and concatenate them, then paste them ont
the other worksheet?

I can't change the format of the two worksheets.

Thanks,

Andyg

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 05:43 PM.

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