Hi all. Some really sharp experts in here. I hope by joining Mr Excel, I will reach a good standard. AS YOU GUYS.
I hit a BRICK wall trying to figure out this problem. I have a worksheet with several columns and hundreds of rows. Each row contains information about a football match such as date , Match Id , players Names and so on. The main worksheet for that contains 56 columns.
What I wanted to do by using VBA is to
1) loop through all rows
2) Select a range "D" to "N" , copy that range and then paste special transpose on Destination worksheet. That would form 11 new rows
3) On the original worksheet there are two columns let us say column "A" and Column "C" that contains data (match_id and Team_ID)
4) I need the to paste those to cells in the same 11 rows of the destination worksheet.
Here is the example
ORIGINAL worksheet
.......A - B -C - D- E -F- G- H -I -J -K- L- M- N
1-2435- 108 , john - jack- Fred- Peter- Hays - Hall-Foster- Clark- Gable -, Johns- Meyers
2-2431-Feb,89- 77 , Harry , Johann , Roberto , Craig ....etc
3-
4-
5-
6-
7-
8-
9-
10-
11-
DESTINATION Worksheet
.....A....B....C....
1 -2435- 108-john
2 -2435- 108- jack
3 -2435- 108- Fred
4 -2435- 108 -Peter
5 -2435- 108 - Hays
6 -2435- 108 - Hall
7 -2435- 108 - Foster
8 -2435- 108 - Clark
9 -2435- 108 - Gable
10-2435- 108 - Johns
11-2435- 108 - Meyers
12-2431-77 - Harry
13-2431-77- Johann
14-2431-77- Roberto
15-2431-77- Craig
16....etc
I Have tried several codes but none worked perfectly as I wanted. I do appreciate any help in resolving this.
I hit a BRICK wall trying to figure out this problem. I have a worksheet with several columns and hundreds of rows. Each row contains information about a football match such as date , Match Id , players Names and so on. The main worksheet for that contains 56 columns.
What I wanted to do by using VBA is to
1) loop through all rows
2) Select a range "D" to "N" , copy that range and then paste special transpose on Destination worksheet. That would form 11 new rows
3) On the original worksheet there are two columns let us say column "A" and Column "C" that contains data (match_id and Team_ID)
4) I need the to paste those to cells in the same 11 rows of the destination worksheet.
Here is the example
ORIGINAL worksheet
.......A - B -C - D- E -F- G- H -I -J -K- L- M- N
1-2435- 108 , john - jack- Fred- Peter- Hays - Hall-Foster- Clark- Gable -, Johns- Meyers
2-2431-Feb,89- 77 , Harry , Johann , Roberto , Craig ....etc
3-
4-
5-
6-
7-
8-
9-
10-
11-
DESTINATION Worksheet
.....A....B....C....
1 -2435- 108-john
2 -2435- 108- jack
3 -2435- 108- Fred
4 -2435- 108 -Peter
5 -2435- 108 - Hays
6 -2435- 108 - Hall
7 -2435- 108 - Foster
8 -2435- 108 - Clark
9 -2435- 108 - Gable
10-2435- 108 - Johns
11-2435- 108 - Meyers
12-2431-77 - Harry
13-2431-77- Johann
14-2431-77- Roberto
15-2431-77- Craig
16....etc
I Have tried several codes but none worked perfectly as I wanted. I do appreciate any help in resolving this.