Macro Copy Data to Another Sheet With Specific Cell

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,077
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi all..

this code work properly, how to modify so code work copy to another sheet with specific cell
here this code:
VBA Code:
Sub copy()
Sheets("Sheet1").Range("A1:B10").copy
'Activate the destination worksheet
Sheets("Sheet2").Activate
'Select the target range
Range("E1").Select
'Paste in the target destination
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub
i want to destination sheet in spesific range/cell e.g. E1,E3,E6,D2, etc..
any one help give me figure out it, thank in advance
.sst
 
Last edited by a moderator:

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
I am not quite clear on what you are asking.

Are you saying that you want:
- A1 to be copied to E1
- A2 to be copied to E3
- A3 to be copied to E6
...

If not, please walk us through an actual example fully, to show us exactly what you are trying to do.
 
Upvote 0
I am not quite clear on what you are asking.

Are you saying that you want:
- A1 to be copied to E1
- A2 to be copied to E3
- A3 to be copied to E6
...

If not, please walk us through an actual example fully, to show us exactly what you are trying to do.
hi joe4,
i'm sorry, yes you're right A1 to be copied E1, A2 to be copied E3, A3 to be copied E6, A4 to be copied E12 etc...
 
Upvote 0
If you are copying a range of 20 cells, then you need to map each of the 20 to 20 specific cells.
Where is this mapping to be stored (i.e. what cell gets copied to what cell)?
 
Upvote 0

Forum statistics

Threads
1,214,654
Messages
6,120,758
Members
448,991
Latest member
Hanakoro

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top