Flip copy paste values using Macro, first row already fill with the data egg copy from row B to C

bocah

New Member
Joined
Apr 19, 2022
Messages
6
Office Version
  1. 2016
Platform
  1. Windows
Hi Guys,

Can you solve my problem.

I try to copy pastevalues using macro, but instead of copied to the right I want to copy it to the left. because the data in the right already fill with certain data.
I already attach the example.

Thanks before

Note: "sumber" is the data source, and "target" is the target paste.
 

Attachments

  • terget.png
    terget.png
    45.5 KB · Views: 25
  • sumber.png
    sumber.png
    14.9 KB · Views: 22

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Welcome to the Board!

I cannot say I really understand what you are trying to do (and judging from the lack of responses, I expect others may be in the same situation).
How exactly are you deciding where to place your data?

Perhaps it would be better if you walked us through the example step-by-step, explaining where you are placing each piece of data and why.
Be very specific, telling us exactly which cell is being copied where and why.

Also, are the source and target sheets in the same workbook, or different ones?
 
Upvote 0
You only answered one of my questions. You neglected to address this:
Perhaps it would be better if you walked us through the example step-by-step, explaining where you are placing each piece of data and why.
Be very specific, telling us exactly which cell is being copied where and why.
If you want assistance, please provide more detail. Remember, while you are very familiar with your set-up and what you want to accomplish, we are not.
All that we know is what you decide to share with us.

Also, is your code to assume that both workbooks are already open or is your code supposed to open the other workbook?
If it is to open the other workbook, are you hard-coding the file path and name, or do you want to prompt the user to browse/select the file?

And which workbook is the VBA code to be located in?

Please be sure to address ALL these questions in your reply.
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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